From 8ed1b574e8b5e9fc806aedc87af7aabcf73da6e6 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Wed, 17 Aug 2022 13:54:48 +0200 Subject: b0.2 --- lib/shift.dart | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/shift.dart') diff --git a/lib/shift.dart b/lib/shift.dart index eecf4cc..c444b38 100644 --- a/lib/shift.dart +++ b/lib/shift.dart @@ -120,6 +120,11 @@ class Shift { getMinutePayRate() * 1.35; } + if (start.weekday == 7) { + return endToCalculate.difference(start).inMinutes * + getMinutePayRate() * + 2; + } return endToCalculate.difference(start).inMinutes * getMinutePayRate(); } -- cgit v1.2.3-70-g09d2