Total rewrite on alarm algorithm

Made it way faster
removed capability for days of month greater than max or less than 1