Hello Team,
From the below input:
| Input |
| Employee | Name | Start Date | End Date | Code | Duration | Dates |
| 1 | Ravi | 3/10/2025 | 3/11/2025 | Vacation | 16 | 3/10/2025 |
| 1 | Ravi | 3/10/2025 | 3/11/2025 | Vacation | 16 | 3/11/2025 |
| 2 | Shiv | 5/12/2025 | 5/14/2025 | Sick | 24 | 5/12/2025 |
| 2 | Shiv | 5/12/2025 | 5/14/2025 | Sick | 24 | 5/14/2025 |
| 2 | Shiv | 5/12/2025 | 5/14/2025 | Sick | 24 | 5/14/2025 |
| 3 | Raj | 6/11/2025 | 6/11/2025 | Floating | 8 | 6/11/2025 |
and trying to generate the following output:
| Output |
| Employee | Name | Start Date | End Date | Code | Duration | Dates | Actual Duration |
| 1 | Ravi | 3/10/2025 | 3/11/2025 | Vacation | 16 | 3/10/2025 | 8 |
| 1 | Ravi | 3/10/2025 | 3/11/2025 | Vacation | 16 | 3/11/2025 | 8 |
| 2 | Shiv | 5/12/2025 | 5/14/2025 | Sick | 24 | 5/12/2025 | 8 |
| 2 | Shiv | 5/12/2025 | 5/14/2025 | Sick | 24 | 5/14/2025 | 8 |
| 2 | Shiv | 5/12/2025 | 5/14/2025 | Sick | 24 | 5/14/2025 | 8 |
| 3 | Raj | 6/11/2025 | 6/11/2025 | Floating | 8 | 6/11/2025 | 8 |