added profit calculation in khanna