First, let me apologise for posting the following wall of text again, but lies like the above need called out every time.
When it comes to finances and accounting Scotland is consider to be just another government department.
All UK revenue is pooled into a central resource (the treasurey) which the UK government then re-allocate as they see fit (there's obviously more to it than that but that's a whole other thread).
Due to the way revenue is recorded it is not possible to accurately report on how much of the total revenue comes from each part of the UK. For example oil and gas exported directly from the North Sea are classified as revenue from "other" sources despite being mostly in Scottish water and is not attributed to Scottish revenue. Similarly, corporation tax is considered from where the HQ is registered, not where revenue was actually generated.
It is therefore an accounting impossibility for Scotland to be cost the UK more than it puts in by as a) we don't actually know how much each nation is putting in and b) we are considered as a single financial entity at this point (a bit like a household with multiple incomes).
However, some have tried to estimate the contribution of Scotland to the UK accounts and the results, as expected vary massively with some reporting that Scotland are net contributers and others saying we are net beneficiaries.
The GERS figures, which are widley dismissed as inaccurate and misleading due to how they apportion spending/revenue, are routinely used to illustrate Scotlands finances (particularly from pro union sides).
In their latest report they estimated a Scottish "deficit" (which doesn't actually exist) of £15 billion. The UK deficit (which does exist) by comparison was £187 billion. So in the GERS figures Scotland's deficit is the around 8% of the UK total, while they also estimate we contribute around 9% of the UKs total revenue with 8.2% of the population. Under these outcomes Scotland again, cannot be said to be being costing more than it contributes.
This brings me back the point around how Scotland is considered as just another government department in the UK and how that impacts on the above. Under the Scotland Act, Scotland must return a balanced budget each and every year and therefore it cannot physically or legally run a deficit. It can borrow some additional funding from the national loan fund, however there are strict limits on how much can be borrowed, and any borrowing must be fully repaid in subsequent budgets.
Any Scottish deficit cited is simply an antempt at allocating a portion of the UK deficit to Scotland, but doing so overlooks a major flaw, which is that under the current set up only the UK government can utilise borrowing powers to run a deficit and as such any deficit created stems from Westminster decisions/mismanagement, not from Scotland.
A second point on this is that England are often the sole beneficiaries of this power, in that if Westminster decide to increase borrowing to fund English only services or projects they can do so and all four home nations are then liable to cover the cost of said borrowing, which will then impact their supposed "deficiet" (as well as their actual budgets).
Any figures or stats quoted that claim to show that Scotland costs the UK more than it receives are based on assumptions, guesswork, and hunches and are most certainly not facts.