Adding a pay calculator
fixing the chart generation