Private Sub AM_TIME_LostFocus()
AM_COST.Value = AM_TIME * 0.5 * 0.4
AM_RATE.Value = 3.62 + AM_MILES2 * 2.2 + AM_TIME * 0.4 + AM_COST
Select Case AM_RATE.Value - Int(AM_RATE.Value)
Case Is <= 0.1: AM_RATE.Value = Int(AM_RATE.Value)
Case Is <= 0.3: AM_RATE.Value = Int(AM_RATE.Value) + 0.2
Case Is <= 0.5: AM_RATE.Value = Int(AM_RATE.Value) + 0.4
Case Is <= 0.7: AM_RATE.Value = Int(AM_RATE.Value) + 0.6
Case Is <= 0.9: AM_RATE.Value = Int(AM_RATE.Value) + 0.8
Case Else: AM_RATE.Value = Int(AM_RATE.Value) + 1
End Select
End Sub