mounting distance

How far away can you mount the camera and still be able to get a decent video. Im thinking about putting one in my shed in the backyard. It would be about 50 feet from the back of my house . As long as it picks up the wi fi. It would then pick up half my yard and back door and windows. I want to try this because im getting alot of glare on my camera from my lights being on in the house. Lots of reflection off my windows. I had it mounted on a window facing my yard, it would pick up movement inside the house from the reflection.