advertisement calculate creditcosts