def cost_of_equitycumdiv(d, Mv):
	"""
	Calculates the cost of capital or equity shareholder required rate of 
	return for an investment in which dividend is expected to remain constant
	forever (dividend is about to be paid)

	parameters:
	-----------
	d = dividend per share	
	Mv = cum-dividend share price 

	"""
	Mv = Mv - d
	ke = d/Mv
	return round(ke, 4)