update prime cost calulation