How do I calculate stamp duty clawback?

Are you asking if you would be liable for the clawback of SD in this situation? The answer is yes since you rented out within 5 years of purchase. The new 2 year clawback period only kicked in for Budget 2008 (backdated to 5th November 2007 I believe).