# Date problem

**URL:** <https://forum.kirupa.com/t/date-problem/160810>\
**Category:** flash\
**Created:** [August 29, 2005, 6:17pm UTC](https://forum.kirupa.com/t/date-problem/160810 "2005-08-29T18:17:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ineedsleep](https://avatars.discourse-cdn.com/v4/letter/i/e5b9ba/32.png) [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Post date:** [August 29, 2005, 6:17pm UTC](https://forum.kirupa.com/t/date-problem/160810/1 "2005-08-29T18:17:57Z")

</div>

I think Ive posted about this before

but thats how desperate I am I have 2 questions

1. how do you use the datefield to get a start date and end date then find out how many days had gone in between?

2. I can get my total to be to 2 decimal places??

on (release){  
extras = ((options.abQty_25)+(options.dustQty_9.50) + (options.truckQty \* 25) + (options.lightQty\*15));  
extras.text=extras;  
dayVal = day.value;  
DayVal = day.value;

rate = Math.ceil(DayVal/7);  
costa = rate\*storesize.selectedItem.data;  
totalb=costa + extras + packingSO.selectedItem.data ;  
totala = totalb;// this is the part that is meant to be doing the decimal places  
totala = totala \* 100;  
totala = Math.round(totala);  
totala = totala / 100;  
total.text = totala;  
}
