I made a UDF for just this a while ago,

ReturnCTDays()