How are earnings determined?