We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fd95ab commit 447edacCopy full SHA for 447edac
src/Urgency.ts
@@ -13,8 +13,9 @@ export class Urgency {
13
14
if (task.dueDate !== null) {
15
// Map a range of 21 days to the value 0.2 - 1.0
16
- const daysOverdue =
17
- window.moment().diff(task.dueDate) / Urgency.milliSecondsPerDay;
+ const daysOverdue = Math.round(
+ window.moment().diff(task.dueDate) / Urgency.milliSecondsPerDay,
18
+ );
19
20
let dueMultiplier: number;
21
if (daysOverdue >= 7.0) {
0 commit comments