Days with workload

Hi,
Is there any way to calculate how many days has an issue workloads. (workload is an hour spent).

If I have open a issue 10 days, but I only I have workloads on monday and friday, I want to have 2 as resultant

thanks