some postage calculate code