Gratuity Calculation Parameter

Gratuity is calculated basis last drawn salary. What is the definition of last drawn basic, will that be what ones last pay slip reads or the basic in the base salary structure?