diff --git a/injection-sequence.html b/injection-sequence.html
index 444036a..c4c174a 100644
--- a/injection-sequence.html
+++ b/injection-sequence.html
@@ -118,7 +118,7 @@
*/
function InjectionSequenceToDate(time, ptime, stime, num) {
var t = InjectionSequence(time, ptime, stime, num);
- var t_hour = Math.floor(t / 60);
+ var t_hour = Math.floor(Math.abs(t) / 60);
var t_min = t % 60;
var date = new Date();
var dateAfter = new Date(date.getFullYear(), date.getMonth(), date.getDate(),