just confirmed that same logic is duplicated elsewhere. (see: https://github.com/mozilla-b2g/gaia/blob/b4d630df1806b45e59b8b2d86d4b830952b35e09/apps/clock/js/timer_panel.js#L90-L94)