fixed the calculated time stuff