fix table rows and nett calcilations