fixed calculator for diving by 0