• I added a SUM in the second line and corrected the wrongly placed brackets.