You need to file a foreign qualification in Maryland if your corporation was formed in another state and is doing business in Maryland.