Hello guys

Well Im developing one interactive form could let you know in what period of time you could recover your money

For example you need to recover your money = 1,000 days

but now I want to calculate the same amount of days but converting in years, months,weeks and days

example :

1,000 days are:

2 years____=720

9 months___=270

1 week_____= 7

3 days _____=3

The month model I use is a flat 30 days, then the year is 360 days.

hope someone could give some help Im unable to find useful articles over the net

here is one aproach of waht is the closest result I could get, but the results stay as decimal numbers

example:

1000 days = 142.8571429 weeks

http://www.onlineconversion.com/time.htm