As usual there are definitely multiple ways to do this. One idea that comes to mind is to put your JS code in a static resource. Each field in the table could reference a snippet defined in that common JS file. Those snippets could in turn reference common calculation functions also contained in the file. Just a matter of code abstraction.
Another idea that might not meet you stringent UI standards would be to combine all three items in a single field. You have well used the “stacked field” model in your tables. This would allow a single snippet to be do your calculations and then display the three values effectively.