Driving Test Canada Test 2 - What is the minimum distance away from a railroad crossing you must stop if you see it flashing or there's a train approaching?

What is the minimum distance away from a railroad crossing you must stop if you see it flashing or there's a train approaching?