Fixed the scenario calculator