fix float calculation for time left