Change response format for calculation 400 Bad Request