Error handling & Use Calculator for window