Skip to content

Commit

Permalink
Merge pull request #31 from harounrusul/master
Browse files Browse the repository at this point in the history
Changed Comment to fit PEP 8 convention.
  • Loading branch information
abougouffa authored Nov 3, 2024
2 parents eb5cd7a + 60b5881 commit 2a82733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyIslam/zakat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
'''
class Zakat():
def calculate_zakat(self, amount, nisab=4000) :
#minimal amount is 4000 dollars approximatively this days
# minimal amount is 4000 dollars approximatively this days
if amount < nisab: # ( < or <= ?! )
return 0
return amount * 0.025 # (4th of 10th)

def calculate_zakat_harvest(self, weight, irrigationType='artificial', method='hanafi') :
#minimal weight in kilogramme
# minimal weight in kilogramme
nisab = 975 if method == 'hanafi' else 612

if weight <= nisab:
Expand Down

0 comments on commit 2a82733

Please sign in to comment.