So I want to put a timer on my front porch lite.. so I go and buy one.. this can't be that difficult right?

Well the timer has 5 wires coming out of the back of it, the rocker switch I'm replacing has 2 wires..that's right two. They both look the same, same black wire.. Wtf...