title: How to know the remaining monthly payments based on the amount received?
body: <p>If I input an amount of P200,000 then my monthly payments are the following:</p>
  
  <pre><code>###############################
  # Monthly Payments ## Remarks #
  ###############################
  # 43,590           ## Pending #
  # 43,590           ## Pending #
  # 43,590           ## Pending #
  # 43,590           ## Pending #
  # 43,590           ## Pending #
  ###############################
  </code></pre>
  
  <p>My monthly payments are in array. Then, how will I know if how many Monthly payments will covered on P200,000 and change the remarks to 'ENCASHED'?</p>
  
  <p>I want the result like this:</p>
  
  <pre><code>###############################
  # Monthly Payments ## Remarks #
  ###############################
  # 43,590           ## Encashed#
  # 43,590           ## Encashed#
  # 43,590           ## Encashed#
  # 43,590           ## Encashed#
  # 43,590           ## Pending #
  ###############################
  </code></pre>
  
  <p>How do I code this on PHP?</p>