Arduino with magnetic sensor...Help please.!

You can use millis() to determine, relative to when the Arduino started, when the value changed to "car parked here" or when it changed to "no car parked here". The difference is how long the car was parked there, in milliseconds. Converting that to seconds, minutes, hours, days, etc. is simple math.