Small utility script that compute a portfolio's P&L