Changed how the costs interval is handled.
This should solve multiple issues that currently appear when the data is displayed (such as negative costs).
This should solve multiple issues that currently appear when the data is displayed (such as negative costs).