Basic salary only: leave out housing, transport and other allowances. It doesn't matter whether you resigned or your employer ended the contract.
Free tool by ToolPeasy