If I invest further in the project what formula is used to determine my purchase cost?

Total project cost x % of the equity you wish to acquire in the project.