From the Newton's second law:
it gives
This expression does not imply having distance traveled, the coefficient of friction and degree of incline will be enough.