How to calculate boss attributes ?