Corrected algorythm for calculating seconds until alarm