diff --git a/src/routes/earnings-calendar/+page.svelte b/src/routes/earnings-calendar/+page.svelte index ffae28d1..a6741549 100644 --- a/src/routes/earnings-calendar/+page.svelte +++ b/src/routes/earnings-calendar/+page.svelte @@ -364,40 +364,46 @@ $: {
| Symbol | -Company Name | -Market Cap | -Revenue Estimate | -EPS Estimate | -Earnings Time | +Symbol | +Company Name | +Market Cap | +Revenue Estimate | +EPS Estimate | +Earnings Time |
|---|---|---|---|---|---|---|---|---|---|---|---|
| - {item?.symbol} + {item?.symbol} | {item?.name.length > 20 ? item?.name?.slice(0,20) + "..." : item?.name} | -- {item?.marketCap !== null ? '$' + abbreviateNumber(item?.marketCap) : '-'} + | + {item?.marketCap !== null ? abbreviateNumber(item?.marketCap) : '-'} | -+ |
- {item?.revenueEstimated !== null ? '$' + abbreviateNumber(item?.revenueEstimated) : '-'}
-
- {#if item?.revenueEstimated !== null && item?.revenue !== null}
-
- {`(${((item?.revenueEstimated/item?.revenue-1)*100)?.toFixed(2)}%)`}
+ {(item?.revenueEst !== null) ? abbreviateNumber(item?.revenueEst) : '-'}
+ {#if item?.revenueEst !== null && item?.revenueEst !== null}
+ {#if (item?.revenueEst/item?.revenuePrior-1) >= 0}
+
+ +{((item?.revenueEst/item?.revenuePrior-1)*100)?.toFixed(2)}%
+
+ {:else}
+
+ {((item?.revenueEst/item?.revenuePrior-1)*100)?.toFixed(2)}%
+
+ {/if}
{/if}
|
@@ -405,19 +411,25 @@ $: {
- {item?.epsEstimated !== null ? '$' + abbreviateNumber(item?.epsEstimated) : '-'}
-
- {#if item?.epsEstimated !== null && item?.eps !== null}
-
- {`(${((item?.epsEstimated/item?.eps-1)*100)?.toFixed(2)}%)`}
+ {item?.epsEst !== null ? item?.epsEst?.toFixed(2) : '-'}
+ {#if item?.epsEst !== null && item?.epsPrior !== null}
+ {#if (item?.epsEst/item?.epsPrior-1) >= 0}
+
+ +{((item?.epsEst/item?.epsPrior-1)*100)?.toFixed(2)}%
+
+ {:else}
+
+ {((item?.epsEst/item?.epsPrior-1)*100)?.toFixed(2)}%
+
+ {/if}
{/if}
|
- {#if item?.time === 'amc'} + {#if item?.release === 'amc'} After Close {:else} |