basic calculator to calculate velocity