SideShow Bob nails it. The black wire connects to the wire coming from your breaker and red goes out to the light. Wire nut all neutrals together. Add wattage of all lamps together and make sure timer is rated for it.