At first glance:
-Didn't include the ammo's delay in the TP/hit calculation.
-Included a decimal for the incorrect calculation of TP per hit (the whole point of the switch to the 1000 system over the 100 TP system was to show us the whole thing- it's floored past that. It looks like you didn't use the .09 in subsequent calculations, but it's still silly to even put it there.)
-Added STP to TP/hit rather than multiplied (e.g. 20 STP is 1.2*, not +20 unless you just so happen to have 100/hit as a base)
-Improperly converted skill into accuracy (it's not 1:1)
-Not sure where that +587 to racc even came from