To calculate a player's slugging percentage in Baseball, you add the total number of bases a player has earned from hits and divide it by the total number of at-bats. The formula is (1B 2Bx2 3Bx3 HRx4) / AB. This gives a measure of a player's power at the plate.