moved all calculation to 1 function for all skills