Determining Spending Limit and Profit Calculation