Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
723 B
2
Indexable
Never
function withdrawalFee($amount){
	$fee = 0;
	if( $amount <= 49){$fee = 0;}
	if( $amount > 49 && $amount <= 100 ){$fee = 11;}
	if( $amount > 100 && $amount <= 2500 ){$fee = 29;}
	if( $amount > 2500 && $amount <= 3500 ){$fee = 52;}
	if( $amount > 3500 && $amount <= 5000 ){$fee = 69;}	
	if( $amount > 5000 && $amount <= 7500 ){$fee = 87;}
	if( $amount > 7500 && $amount <= 10000 ){$fee = 115;}
	if( $amount > 10000 && $amount <= 15000 ){$fee = 167;}
	if( $amount > 15000 && $amount <= 20000 ){$fee = 185;}
	if( $amount > 20000 && $amount <= 35000 ){$fee = 197;}
	if( $amount > 35000 && $amount <= 50000 ){$fee = 278;}
	if( $amount > 50000 && $amount <= 249691 ){$fee = 309;}
	if( $amount > 249691 ){$fee = 0;}
	return $fee;
}
Leave a Comment