I am trying to get some type of values like this.
Value: 200
Days: 35
Division: Value/Days = 5.714 for the total 35 days
I am getting fixed value for each day using this way, but I actually want to get different value for each day like:
Division: Value/Days = 5.714
Day 1: 5.714
Day 2: 4.5
Day 3: 6.1
Day 4: 3.4
Day 5: 2
Day 6: 5.1
And so on for the total of 35 days.
How can I achieve this goal? Is there any way to do so? I am really null in mathematics so i really need an idea from the experts.
Note: I want to acheive this in PHP.
Example code:
Result: