slight tweak to period clalculations for fitting effects to time.