Fixed bug in real estate calculation