Add new function for general fee and credit