there are three terminals at fan location. live ,neutral and t for timed.I have a permanent live, switched live , neutral and earth. which wire connects to ' t '.
Switched Live connects to "t" - this is the signal for the fan to start running - when switched live goes away as the light is turned off, permanent live and neutral keep the fan running until its timer times out.