Change algorithm for make bill for franch numbers