How do you determine your earnings?