Maximizing earnings