Making work for dates longer than a month

Made small change to make work past 30 days. Thanks for the great plugin.