how long is the morning after pill effective for

Me an my boyfriend had sex on the 30th August the condom broke before he cummed. How long is it before it doesn't work