No app / software / system, and this is very subjective, but I've found that for myself the following principles work well:
1. Every hour of sleep before midnight is 'worth' 2 hours in terms of good sleep. Going to bed at 11pm already provides huge improvements in morning mood and productivity. See -->3.
2. In the evening, write down the 3 most important things you wish to achieve on the next day.
3. Early mornings work hours (even in your pyjama) are vastly more productive than any other time of the day.