calc cost, user alert