further implementation of TimePeriods as Floats and testing