Merge pull request #19161 from vijaywm/lwp_half_day_fix

fix: LWP calculation in multi-day leaves having half day