Anonymous

Module:Calculator/ETA: Difference between revisions

From Melvor Idle
m
Fix erroneous calculation of time remainder
m (Make resulting table vertical instead of horizontal)
m (Fix erroneous calculation of time remainder)
Line 7: Line 7:
     local sec = math.floor(timeInHundredths / 100)
     local sec = math.floor(timeInHundredths / 100)
     local min = math.floor(timeInHundredths / 60000)
     local min = math.floor(timeInHundredths / 60000)
     local hrs = math.floor(timeInHundredths / 3600000)
     local hrs = math.floor(timeInHundredths / 360000)
     local days = math.floor(timeInHundredths / (3600000 * 24))
     local days = math.floor(timeInHundredths / (360000 * 24))


if days == 0 then
if days == 0 then
2,875

edits