Cost calculation for new hulls?


Is there any official formula for calculating the costs of new/modded hulls (assumed that stock weapons/modules are used)?
I like many of the mods but I find some hulls are over- /underpriced when using them together with stock hulls or other mods. For my personal use I tried to find some cost calculation based on the average values of stock hulls:
cost=powerproduced*4.3+(total of boost percentages)*1.4+(number of hardpoints)*8.6+(number of standard slots)*3.5