Okay this is probably more complex than it needs to be.

I need to take the time someone starts a test and the time the person finishes a test. I then need to subtract time start from time end and arrive at a weighting to subtract from the overall test score.

For example

20 questions each worth 200 points, minus time in seconds weighting.

Really have no idea on this one