how to find distance from displacement time graph