Corrected calculation.js