3 push switch plus lights.
Light switch for light and extractor fan.
Connect the black fan cable together with the black light wire and the black switch wire and.
If the fan is operated by a manual switch then one has to make a conscious decision to operate that switch.
If the extractor is linked to the light then per my second point above one has to make a conscious decision to turn on the lights even if when lights are not needed during daylight hours in order for the extractor to operate.
Using wire strippers peel an inch of insulation from the end of the black and white wires.
However if there is a window but it does not open then there has to be another way to switch on the fan as well as the light switch in fact there is no requirement to have it connected to light switch so three main methods are 1 a simple push switch with built in timer.
This is because many include a run on capability that is triggered by the operation of the light switch and it is not permitted to have a device powered from two separate circuits.
Locate the switch cable which must be glued through the top or side of the box that serves the fan or the light.
Connect a light and a fan to a new switch.
Extractor fans in bathrooms are frequently powered from a lighting circuit.