How do i figure out when im ovulating

Thereis a chance i could be pregnant i need to figure out when i was ovulating last.