Skip to content

Instantly share code, notes, and snippets.

@iamtalhaasghar
Created January 13, 2021 10:02
Show Gist options
  • Save iamtalhaasghar/8064ea8075a5f476227d983b14c6e100 to your computer and use it in GitHub Desktop.
Save iamtalhaasghar/8064ea8075a5f476227d983b14c6e100 to your computer and use it in GitHub Desktop.
A simple program to calculate actual withdraw amount of payoneer after deduction of 2% charges from USD to YOUR_NATIVE_CURRENCY
# A simple program to calculate actual withdraw amount of payoneer
payoneerCut = 2
rate = int(input('Enter currency rate of USD -> YOUR_NATIVE_CURRENCY : '))
amount = int(input('Enter amount to withdraw (in YOUR_NATIVE_CURRENCY): '))
rate = (rate - ((payoneerCut / 100) * (rate)))
print('New Rate of USD -> YOUR_NATIVE_CURRENCY : %.2f' % (rate))
print("You`ll recieve: %.2f (in YOUR_NATIVE_CURRENCY)" % (rate * amount))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment