Days in a status between specific dates

I want to use it to solve my case: SLA vs Number of days in status