Getting the rainwater away from the house is the easiest way to keep it from flooding the basement. Generally, installing a downspout extension 10 feet away from the house is enough - some people choose to go farther if they are trying to reach a garden or drainage ditch or something else to hide the discharge.
Our Service Area