move dates to the end of the period being calculated