market value calculation