fixes the calculation of Period start time for multiple periods