diff --git a/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.C b/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.C
index 9cf0a65f6ba2bfaa81e393224db32facad4fe0de..dbe83f7abd97168429bf614f6d1966a525c0ae34 100644
--- a/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.C
+++ b/src/thermophysicalModels/radiation/submodels/solarCalculator/solarCalculator.C
@@ -5,7 +5,7 @@
     \\  /    A nd           | www.openfoam.com
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
-    Copyright (C) 2015-2022 OpenCFD Ltd.
+    Copyright (C) 2015-2024 OpenCFD Ltd.
 -------------------------------------------------------------------------------
 License
     This file is part of OpenFOAM.
@@ -95,7 +95,7 @@ void Foam::solarCalculator::calculateBetaTheta()
 
     dict_.readEntry("startTime", startTime_);
 
-    const scalar LST =  startTime_ + runTime/3600.0;
+    const scalar LST = startTime_ + std::fmod(runTime/3600.0, 24);
 
     const scalar LON = dict_.get<scalar>("longitude");