Calculate the cost with this formula:
30 x the cost of the 1st star of the last line during building a village.