Not all days have 86400 seconds. Follow almut's advice.
In reply to Re: Number of day in the year to proper date by ikegami in thread Number of day in the year to proper date by gio001