Add getPreciseNextMonth function

Signed-off-by: Yi-Feng Tzeng <yftzeng@gmail.com>