diff --git a/rslib/src/browser_table.rs b/rslib/src/browser_table.rs index 432ac1d92..1e988b79a 100644 --- a/rslib/src/browser_table.rs +++ b/rslib/src/browser_table.rs @@ -104,10 +104,9 @@ impl Card { if self.queue == CardQueue::Learn { Some(TimestampSecs(self.due as i64)) } else if self.is_due_in_days() { - Some( - TimestampSecs::now() - .adding_secs(((self.due - timing.days_elapsed as i32) * 86400) as i64), - ) + Some(TimestampSecs::now().adding_secs( + ((self.due - timing.days_elapsed as i32).saturating_mul(86400)) as i64, + )) } else { None }