proper fee calculations