Jump to content

Recommended Posts

Hi - Newbie here....  Hoping you can help.

 

Looking for help in creating a script that will split revenue across days and output the total revenue by month

 

Example:

 

Startdate: 08/12/2010

Enddate: 10/31/2010

Total Revenue: 10000

 

The script needs to determine total number of days to apply revenue to (based on startdate/enddate) :  80 (19 in aug, 30 in sept, 31 in oct)

 

determine revenue per day = take the total revenue and divide it by numdays 10000/80=125

 

based on the startdate and end date determine how much revenue should be applied to each month and report monthly total.

 

Results should be:

Aug - 2375 (19x125)

Sept - 3750

Oct - 3875

 

I wrote a scripe but im getting confused on the looping etc...

 

Please help!!

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.