Payback period is the length of time a project recovers back the money invested.
Payback period= invested cash/ Net annual cash flow
Therefore payback period =40,000/5000
=8.0 years
Since depreciation is a non- cash expense it is ignored while calculating payback period.