calculation for largenumber