Updated the projected days logic using MIN(startdate) and MAX(enddate) from dbo.bi_tasks instead of using the startdate and enddate from dbo.bi_projects