Looks great, but my only concern is that getThresholdQuantity is not consistent. Cuz it can return hours, seconds, days. I think it would be good idea to make it consistent. Perhaps removing getMiliseconds and make getThreasholdQuanity return those miliseconds itself.