From 1fd852e957d2addd1b959d85510d132dc3fdc157 Mon Sep 17 00:00:00 2001 From: KonstanceH Date: Mon, 13 May 2024 12:19:21 +0000 Subject: [PATCH] added day to sit days --- .../shipment_summary_worksheet/shipment_summary_worksheet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/shipment_summary_worksheet/shipment_summary_worksheet.go b/pkg/services/shipment_summary_worksheet/shipment_summary_worksheet.go index bcc9825735c..d88ce199749 100644 --- a/pkg/services/shipment_summary_worksheet/shipment_summary_worksheet.go +++ b/pkg/services/shipment_summary_worksheet/shipment_summary_worksheet.go @@ -620,7 +620,7 @@ func FormatSITDaysInStorage(ppm models.PPMShipment) string { firstDate := ppm.SITEstimatedDepartureDate secondDate := *ppm.SITEstimatedEntryDate difference := firstDate.Sub(secondDate) - formattedDifference := fmt.Sprintf("Days: %d\n", int64(difference.Hours()/24)) + formattedDifference := fmt.Sprintf("Days: %d\n", int64(difference.Hours()/24)+1) return formattedDifference }