I have the below data frame, now I wanted to calculate how long each SOURCE in the Bad status.
For example, SOURCE A