How long?!

How long after sex do you have to wait to take a HPT and get a accurate result? We had sex September 16th.