• None of the values you enter are saved anywhere or sent outside this page. Feel free to try the tool.
  • Results are rounded to the nearest decimal place.
#sleep-cal table caption { caption-side: top; color: black; font-size: 18px; font-weight: bold; } #sleep-cal table th { width: 20%; text-align: left; } #sleep-cal table td { width: 80%; } #sleep-cal table td.auto { background: #dfffe4; display: table-cell; } #sleep-cal table td p { margin-bottom: 10px; } #sleep-cal table td p:last-child { margin-bottom: 0; } #sleep-cal table td .input-wrap { display: flex; margin-top: 20px; } #sleep-cal table td .input-result { font-size: 18px; width: 120px; text-align: right; padding-right: 10px; } #sleep-cal table td input[type=”range”] { width: 100%; -webkit-appearance: slider-horizontal; -moz-appearance: slider-horizontal; appearance: slider-horizontal; } #sleep-cal table td .number-input { font-size: 18px; width: 100px !important; display: inline-block; } #sleep-cal table td .score { font-size: 18px } #sleep-cal table td diff { }
Current sleep status
Sleep time
{{now.sleepTime}} hours
Active timeYou can include working hours as well as exercise, study, hobbies, and other activities.
{{now.activeTime}} hours
Performance at your current sleep duration Please set how much performance you can deliver now, using 100% to represent what you could do with ideal sleep.
{{now.performance}}%

Hourly value generated at that performance level
yen

Efficiency score (daily value) Active time [{{now.activeTime}} hours] x Value per hour [{{now.benefit}} yen] =
{{nowScore()}} yen
If you sleep your ideal amount
Sleep time Set the number of hours of sleep that would let you perform at 100%.
{{ideal.sleepTime}} hours
Active timeCurrent active time [{{now.activeTime}} hours] – (Ideal sleep time [{{ideal.sleepTime}} hours] – Current sleep time [{{now.sleepTime}} hours])
{{now.activeTime-(ideal.sleepTime-now.sleepTime)}} hours
Performance with ideal sleep

100%

Hourly value
{{idealBenefit()}} yen

Efficiency score Active time [{{idealActiveTime()}} hours] x Value per hour [{{idealBenefit()}} yen] =
{{idealScore()}} yen {{diffScore()}}
const app = new Vue({ el: ‘#sleep-cal’, data: { now: { performance: 60, sleepTime: 4, activeTime: 11, benefit: 1000, score: 0 }, ideal: { sleepTime: 7, activeTime: 0, benefit: 0, score: 0 } }, methods: { nowScore: function () { const activeTime = this.now.activeTime; const benefit = this.now.benefit; return this.now.score = Math.round(activeTime * benefit); }, idealActiveTime: function () { this.ideal.activeTime = this.now.activeTime – (this.ideal.sleepTime – this.now.sleepTime); return this.ideal.activeTime; }, idealBenefit: function () { // Value gained from improved efficiency const boost = 100 / ((this.now.performance * 0.01) * 100); return this.ideal.benefit = Math.round(this.now.benefit * boost); }, idealScore: function () { return this.ideal.score = Math.round(this.ideal.activeTime * this.ideal.benefit); }, diffScore: function () { if (this.now.score < this.ideal.score) { const result = `(${this.ideal.score – this.now.score} yen gained by getting more sleep!)`; return result; } } } });