A simple formula for optimal results