Create calcKarma prototype method for transaction and update formula