title: Evenly distribute values over a time period
body: <p>I have got a variable amount of items, and a variable date range that I need to distribute them over. Lets say I have 3 items and I need to distribute them over 6 days. What I would want is to have every second day have an item, and it does not matter if the first day has an item or not. If I had 7 items over 6 days, one of the days would get 2 items, it does not matter which day that is either.</p>
  
  <p>Sadly, it turns out I really suck at maths, so I have no real idea on how to do this in a relatively nice and pretty way, or if it is even possible. I could probably figure it out in a hacky way, but I'm hoping to learn something from it as well :P</p>
  
  <p>The language used is PHP.</p>