calc average charges