Please someone help me understand.

s...
How exactly to opk work? When the test gives you a positive ( 2 lines) does it mean your ovulating right then and there or..... I thought i new but i guess i dont. It says to have sex the day before? Someoneeeeeee please break it down for me