For MSEC constants changed from int to long so that math is done using
longs. For when dealing with a month this is important because will wrap
around if just using ints and this will of course cause math errors
which are silent and therefore very problematic.