Calculate the time difference between selecting and removing an option from a single-select dropdown Custom Field

Hi Team,
I need a calculated member formula to calculate the date difference when a single-select custom field option is selected and then removed.
I have a Blocked Type Custom Field with two options: Team A and Team B. I want to calculate the number of days an issue remains in the custom field whether selected with Team A or Team B.

Thanks