GST needs to be paid on same of machinery at the sales value if you have not claimed ITC earlier at the time of purchase. Therefore, calculate GST of 5,60,000.'
However, if ITC was claimed earlier, GST will be charged on the difference of Sales value and purchase price. In case of negative, ignore. In the current senario, it should be nil.