Calculate distance using accelerometer