how to calculate...

how to calculate swap?