Within four years:
(a) An action upon any contract, obligation or liability founded upon an instrument in writing, except as provided in Section 336a; provided, that the time within which any action for a money judgment for the balance due upon an obligation for the payment of which a deed of trust or mortgage with power of sale upon real property or any interest therein was given as security, following the exercise of the power of sale in such deed of trust or mortgage, may be brought shall not extend beyond three months after the time of sale under such deed of trust or mortgage.
…
(c) An action based upon the rescission of a contract in writing. The time begins to run from the date upon which the facts that entitle the aggrieved party to rescind occurred. Where the ground for rescission is fraud or mistake, the time shall not begin to run until the discovery by the aggrieved party of the facts constituting the fraud or mistake. Where the ground for rescission is misrepresentation under Section 359 of the Insurance Code, the time shall not begin to run until the representation becomes false.
(d) When the period in which an action must be commenced under this section has run, a person shall not bring suit or initiate an arbitration or other legal proceeding to collect the debt. The period in which an action may be commenced under this section shall only be extended pursuant to Section 360.
Cal. Code of Civ. Pro. § 337