P&L calculator