How to Capturing How Long a Record Spends in Each Status

I need to calculate how long a record spends in one status before it change to other status.
I used DailyCounter in workflow but it does not work

Please help