So what is the meaning of "получаться" at the below sentence?

доходы минус расходы и у нас получается прибыль