When there is more than 1 period, you cannot click on the “here” button to update the end (until) date.
Go into the service period itself, and update the until date from there – click the checkmark and then the save button.
Repeat for the second period.