Bounds for the solutions of boundary value problems