Earnings per share is net profit after tax divided by the weighted number of shares on issue - hence the interest on the capex funding, plus depreciation and income tax all need to be taken into account in determining EPS. The resulting calculation x a reasonable p/e multiple gives you the target share price