calculate when you make profit wiht a paper