updated formulas in maintenance.java