made profit calculator working