convert function used in estimation of budget.