I have requirement as follows I have two dates i need to find how may given period will come in between

**Date1**: 06-24-2021 18:39:59

**Date2**: 06-27-2021 02:17:03

**Period**: from thursday 21:00:00 to saturday 05:00:00

Date1 and Date2 just an exemple it could be any