Collision bugs

Im having trouble getting my little firing demo working properly.

It finds a collision before there is infact a collision, thhe maths looks correct but it consistently finds the collision too early.

Please help.