Board Thread:The Quarters - Q & A/@comment-24788310-20150225215731/@comment-24150802-20150226075220

It's complex because it depends on several factors. The calculations performed by cron start at this line of code: https://github.com/HabitRPG/habitrpg/blob/develop/common/script/index.coffee#L1491 and continue on below that, and also in routines called from other parts of that script. If you have questions after looking through that, ask again here.