Failure with rounding caused incorrect pricing

The calculation of failure for subassemblies was not always correct, resulting in the failure percentage sometimes being applied twice and variable material costs not being accurately passed on.