From the shiurim of Rabbi Elchanan Peretz shlita on monetary law, damages and the laws of robbery
A person who broke a small glass window in a giant 30-story office building – the one who caused the damage must pay the cost of repairing the window and installing it as new.
The question: A person broke a small glass window in a giant 30-story office building – do we assess how much the value of the entire building declined on the market (in which case the building as a whole suffers no loss of value), or does he pay the cost of repairing that specific window?
The one who caused the damage must pay the cost of repairing the window and installing it as new. The Shulchan Aruch rules that with regard to any object or structure that is subject to repair, we do not assess it relative to the entire property, but rather we assess the specific damage according to the cost required to restore the situation to its original state.
(Sources: Shulchan Aruch, Choshen Mishpat 387:1; and Shach ad loc., se’if katan 1.).
The answers were compiled from the shiurim of Rabbi Elchanan Peretz shlita and from rulings he received from HaGaon Rabbi Chaim Pinchas Scheinberg zt”l and from leading poskim, and are for study purposes only. One may not rely on what is stated here for practical halachic ruling; for a personal question, one should consult a rav or a Beit Horaah.