zakaat

slmz.i started saving money every month in an islamic investment account.however the money i saved every month was not fixed,it varied month to month.am i still liable to pay zakaat and if so do i pay zakaat on the profit gained only or on the total amount saved to date.a year has passed.