Works out percentage earnings