Maturnity leave

Even though I'm only 10 weeks pregnant, this is my first one, so I'm still learning all sorts of things. Any advice helps!! But how in the world does maturnity leave work? Is it based on your Over Time hours?? Please send help lol