A non-conforming building which has been damaged or destroyed by fire, explosion, accident or calamity (as contrasted to deterioration due to time or neglect) may not be rebuilt, altered or repaired after damage exceeding 50 percent of its replacement cost at the time of destruction except in conformity with this chapter.