fix:math for % earnings

This commit is contained in:
hackerESQ
2024-10-25 21:15:43 -05:00
parent ff476ad406
commit 9d9baa8857
4 changed files with 10 additions and 4 deletions
@@ -7,7 +7,7 @@
} else {
$isUp = $costBasis <= $marketValue;
$percent = $costBasis ? (($marketValue - $costBasis) / $costBasis) : 0;
$percent = $costBasis ? (($marketValue - $costBasis) / $costBasis) * 100 : 0;
}
@endphp