# Help conveting decimal numbers to years-months-weeks-days

**URL:** <https://forum.kirupa.com/t/help-conveting-decimal-numbers-to-years-months-weeks-days/206549>\
**Category:** flash\
**Created:** [November 9, 2006, 6:09am UTC](https://forum.kirupa.com/t/help-conveting-decimal-numbers-to-years-months-weeks-days/206549 "2006-11-09T06:09:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pingorete](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@Pingorete](https://forum.kirupa.com/u/Pingorete)\
**Post date:** [November 9, 2006, 6:09am UTC](https://forum.kirupa.com/t/help-conveting-decimal-numbers-to-years-months-weeks-days/206549/1 "2006-11-09T06:09:54Z")

</div>

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](http://www.onlineconversion.com/time.htm)
