This is not an elaborate post on complex algorithm I just found out, no. This is just an update saying that I'm starting to put functions in my PHP code. For the sake of prototyping, I was putting my code directly in the Body (the linear way), but it's time to clean up before I start working on the offset (first day of the month) algorithm.