Algorithm For Clothes Maintenance