# Can anyone help me? please

**URL:** <https://forum.kirupa.com/t/can-anyone-help-me-please/201741>\
**Category:** flash\
**Created:** [September 24, 2006, 4:46pm UTC](https://forum.kirupa.com/t/can-anyone-help-me-please/201741 "2006-09-24T16:46:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SOPHIESANGEL](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@SOPHIESANGEL](https://forum.kirupa.com/u/SOPHIESANGEL)\
**Post date:** [September 24, 2006, 4:46pm UTC](https://forum.kirupa.com/t/can-anyone-help-me-please/201741/1 "2006-09-24T16:46:06Z")

</div>

I am having trouble still with this. If I type 7 in the input txt box I get this in my output when I submit  
days = 7 by using trace("days = "+\_root.days);  
which is fine but I need it to output the correct rate for 7 days from my array and store that rate as a variable so I can add or multiply it to others when it calculates!  
This is my array  
durationDays = new Array();  
durationDays [0] = “1.4375”;  
durationDays [1] = “2.6991”;  
durationDays [2] = “3.8160”;  
and so on…

So if the user types in 2 I need to turn it into 2.6991 and make this into a variable!

I’m really stuck here! please help
