diff --git a/README.md b/README.md index 2d70bde..425162b 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,9 @@ inaccuracies or bugs (please report!) - Simulating account balance with day granularity - Plotting results using PyPlot +![betty1](betty_graph.png) +![betty2](betty_txt.png) + ## Dependencies The script uses NumPy, MatPlotLib and Pandas for plotting. This may be improved in a future version diff --git a/betty_graph.png b/betty_graph.png new file mode 100644 index 0000000..ae9c762 Binary files /dev/null and b/betty_graph.png differ diff --git a/betty_txt.png b/betty_txt.png new file mode 100644 index 0000000..19f1a9e Binary files /dev/null and b/betty_txt.png differ diff --git a/profin/__init__.py b/profin/__init__.py index 74c9a1e..e448dd9 100644 --- a/profin/__init__.py +++ b/profin/__init__.py @@ -257,7 +257,7 @@ class MonthlyIncome(AIncome): self.ended = True topay = self.remains self.remains = 0 - return topay + return topay if self.monthly > 0 else -topay self.remains -= abs(self.monthly) else: return 0