--- template/app/src/client/utils.ts
+++ opensaas-sh/app/src/client/utils.ts
@@ -4,3 +4,12 @@
 export function cn(...inputs: ClassValue[]) {
   return twMerge(clsx(inputs));
 }
+
+export function formatNumber(number: number) {
+  if (number >= 1_000_000) {
+    return (number / 1_000_000).toFixed(1) + "M";
+  }
+  if (number >= 1_000) {
+    return (number / 1_000).toFixed(1) + "K";
+  }
+}
