I did a few experiments to figure out the calculation for the refit cost.
It is known that the refit cost from class A to B, is the cost of components that are on B but not on A, then plus a size difference cost described in
http://aurora2.pentarch.org/index.php?topic=8495.msg117467#msg117467.
This is an in-game screenshot of the refit detail screen, refitting from
Abilene class Ammunition Transport 626,779 tons 85 Crew 1,707.4 BP TCS 12,536 TH 0 EM 0
1 km/s Armour 1-652 Shields 0-0 HTK 19 Sensors 0/0/0/0 DCR 1 PPV 0
MSP 1 Max Repair 200 MSP
Cargo 625,000
Lieutenant Commander Control Rating 1 BRG
Intended Deployment Time: 3 months
The exact size of the above is 12535.56
to
Abilene - Copy class Ammunition Transport 751,999 tons 100 Crew 1,995.6 BP TCS 15,040 TH 0 EM 0
1 km/s Armour 1-736 Shields 0-0 HTK 22 Sensors 0/0/0/0 DCR 1 PPV 0
MSP 1 Max Repair 200 MSP
Cargo 750,000
Lieutenant Commander Control Rating 1 BRG
Intended Deployment Time: 3 months
The exact size of the above is 15039.97
The size difference cost can be calculated as
(200+4+84.2) * (15039.97 - 12535.56) / 12535.56 = 288.2 * 0.1997845 = 57.5779
which is rounded up to 58. So far so good.
However, there is another term 'refit overhead cost' of 80.7 coming out of somewhere. I don't know how it is calculated, but it seem to be 20% of the total cost of 403.5. Furthermore, if we add the 5 items, it comes to
200 + 4 + 84.2 + 80.7 + 58 = 426.9
There is a huge difference between this and the displayed total 403.5, which cannot be explained by rounding.
Other examples:
In all these examples, the total is not the sum of the listed items, but the refit overhead cost is always total * 0.2 rounded to the 1st decimal place.
Does anyone know what is this refit overhead cost and how the total is calculated?