add p&l calculation