added complex rent calculation