In terms of maths, it depends on the implementation.
UBI is no different from social benefits that almost all countries have except that they're mostly conditional (for child, for unemployed, for homeless etc) while UBI is simply unconditional, granted to everyone.
Then UBI can be compared against tax free income, or income threshold for which you don't pay income tax, that is universal except it only applies to people who earn money from employment.