Wiring – Help me understand complicated junction / switch box — with diagram

wiring

This is a double switch box in a bathroom. On my diagram the circles are wire connectors. There are three wires coming into the box, each with a black and white wire. There are two switches in the box, one for a light, and the other for a fan. The fan switch is a timer. The timer was working OK but started making a loud buzzing noise so I took the plate off and this is what I found. I wish to replace the timer with another timer. My question is:
* should I go buy a timer that has a red, white and black wire coming out and just hook it up the same way?
* does this box need to be rewired?

Wiring diagram

Best Answer

Any timer should suffice.

If the timer is a powered/active device and needs a neutral wire, the neutral wire is available there for you to use.