This looks like a potentially problematic operation. For any factor bigger than 2 the multiplication will result in an overflow for large nsecs. Therefore you should either not offer that kind of function and change its implementation to to 64-bit arithmetic and use `mod` to get it back into valid ranges.