how to calculate equity financing