Icons in case list

Hi All

let me go through the whole scenario and i hope this would clarify me and you on this.

I have a hidden value hv_last_visit_date which is storing the date on which a beneficiary was visited.

Now the next visit to that beneficiary is scheduled after 3 days.

Now i want that if that if beneficiary is visited within 3 days from last visit date then in case list it should show green icon.

And if beneficiary is not visited within 3 days from last visit date then in case list it should show red icon.

i hope i am clear on that now.

Kindly help me on that