diff --git a/src/Utils/utils.ts b/src/Utils/utils.ts
index 2bcf47ab134..3130a8d4045 100644
--- a/src/Utils/utils.ts
+++ b/src/Utils/utils.ts
@@ -516,3 +516,8 @@ export const properRoundOf = (value: number) => {
}
return value.toFixed(2);
};
+
+export function daysUntilToday(inputDate: Date | string) {
+ const date = dayjs(inputDate);
+ return dayjs().diff(date, "day");
+}