Number Function

Wrote number function with a for loop had some difficulty but it works
with passing parameters of the bill and payments