Código
Esa fue la solucion a mi problema Gracias
public function CalcPrestamo($monto, $interes, $tiempo){ $this->monpre = $monto; $this->intpre = $interes; $this->timepre = $tiempo; $interes /=100; $int = $monto * $interes; $intCuo = $int / $tiempo; $pagCap = $monto / $tiempo; $cuotas = $intCuo + $pagCap; $amort = $cuotas - $int; $vf = $monto + $int; echo "<HR />"; echo "<h3><strong>Calculos del Prestamo</strong></h3>"; echo '<table align="center" width="40%" border="0" cellspacing="1" cellpadding="1">'; echo "<tr>"; echo "<td align='left'>MONTO: </td>"; echo '<td colspan="2"><div align="left" >'.$monto.'</div></td>'; echo '<td align="left">INTERES:</td>'; echo '<td colspan="2"><div align="left" >'. $int .'</div></td>'; echo '</tr>'; echo "<tr>"; echo "<td align='left'>TIEMPO: </td>"; echo '<td colspan="2"><div align="left" >'.$tiempo.'</div></td>'; echo '<td align="left">CUOTA:</td>'; echo '</tr>'; echo "</table>"; echo "<br />"; echo "<table class='tableloans' cellspacing='1' align='center' border='1'>"; echo "<tr>"; echo "<th align='center'>Periodo</th>"; echo "<th align='center'>Cuota</th>"; echo "<th align='center'>Interés</th>"; echo "<th align='center'>Amortz</th>"; echo "<th align='center'>T Amortizado</th>"; echo "</tr>"; $tar = 0; for($valor = 1; $valor <= $tiempo; $valor++){ $tar = $tar+$amort; echo "<tr>"; echo "<td align='center'>".$valor. "</td>"; echo "<td align='center'>".$int . "</td>"; echo "</tr>"; } echo "<table>"; }