PageSourceSearch

https://rbxcalculator.net/_next/static/chunks/app/tools/roblox-tax-calculator/page-b173a13949977e2d.js

js rbxcalculator.net collected 2026-10-07 07:57:00 UTC 14,992 bytes, 6 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[318],{8729:function(e,r,t){Promise.resolve().then(t.bind(t,4698)),Promise.resolve().then(t.bind(t,4056)),Promise.resolve().then(t.bind(t,4969))},4969:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return u}});var s=t(7437),a=t(2265),n=t(4033),i=t(2782),l=t(2898);/**
2 * @license lucide-react v0.294.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let o=(0,l.Z)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),c=(0,l.Z)("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]),d=(0,l.Z)("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]),m=(0,l.Z)("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),x=[{id:"gamepass",label:"Game Pass / Developer Product",creatorShare:70,description:"Items sold within your experience"},{id:"clothing",label:"Classic Clothing (Shirt, Pants)",creatorShare:70,description:"Traditional 2D clothing items"},{id:"3d_asset",label:"3D Asset (Accessory, Hat, etc.)",creatorShare:30,description:"Modern UGC items sold on the Marketplace",warning:"⚠️ Warning: Platform fee is higher for 3D assets"}],h=e=>0===e?"0":Number(e.toFixed(4)).toString();var u=(0,a.forwardRef)((e,r)=>{let t,l,u;let[p,g]=(0,a.useState)(""),[b,f]=(0,a.useState)(""),[j,y]=(0,a.useState)("gamepass"),[v,N]=(0,a.useState)(!1),[k,w]=(0,a.useState)(!1),[S,P]=(0,a.useState)("price-to-net"),R=(0,n.useSearchParams)();(0,a.useEffect)(()=>{if(!k){let e=R.get("salePrice"),r=R.get("netEarnings"),t=R.get("selectedItemType"),s=R.get("calculationMode");(e||r||t||s)&&(e&&g(e),r&&f(r),t&&y(t),s&&("price-to-net"===s||"net-to-price"===s)&&P(s),setTimeout(()=>{E()},1e3)),w(!0)}},[R,k]);let E=()=>{{let e=new URL(window.location.href);e.searchParams.delete("salePrice"),e.searchParams.delete("netEarnings"),e.searchParams.delete("selectedItemType"),e.searchParams.delete("calculationMode"),window.history.replaceState({},"",e.toString())}};(0,a.useImperativeHandle)(r,()=>({getShareUrl:e=>{if(!e)return"".concat(window.location.origin).concat(window.location.pathname);let r=new URL(window.location.origin+window.location.pathname);return"price-to-net"===S&&p&&r.searchParams.set("salePrice",p),"net-to-price"===S&&b&&r.searchParams.set("netEarnings",b),j&&"gamepass"!==j&&r.searchParams.set("selectedItemType",j),"price-to-net"!==S&&r.searchParams.set("calculationMode",S),r.toString()}}),[p,b,j,S]);let M=x.find(e=>e.id===j)||x[0],C=100-M.creatorShare;if("price-to-net"===S)t=parseFloat(p)||0,l=M.creatorShare/100*t,u=C/100*t;else{let e=parseFloat(b)||0;l=e,u=C/100*(t=e/(M.creatorShare/100))}let I=e=>{if(e!==S){if("price-to-net"===e&&b&&!p){let e=parseFloat(b);e>0&&g(h(e/(M.creatorShare/100)))}else if("net-to-price"===e&&p&&!b){let e=parseFloat(p);e>0&&f(h(M.creatorShare/100*e))}P(e)}};return(0,s.jsx)("div",{className:"w-full max-w-4xl mx-auto p-6",children:(0,s.jsx)("div",{className:"bg-secondary/10 rounded-2xl border border-secondary/20 dark:border-secondary/30 shadow-xl",children:(0,s.jsxs)("div",{className:"p-8",children:[(0,s.jsx)("div",{className:"mb-6 p-4 bg-primary/10 dark:bg-primary/10 rounded-lg border border-primary/20 dark:border-primary/30",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(o,{className:"w-5 h-5 text-primary dark:text-primary mt-0.5 flex-shrink-0"}),(0,s.jsxs)("div",{className:"text-sm text-muted-foreground",children:[(0,s.jsx)("p",{className:"font-medium text-primary dark:text-primary mb-2",children:"Understanding Roblox Platform Fees"}),(0,s.jsxs)("p",{children:["For most virtual goods like Game Passes and Developer Products, you earn ",(0,s.jsx)("strong",{children:"70%"})," of the sale price. However, for 3D assets sold on the Marketplace, creators only earn ",(0,s.jsx)("strong",{children:"30%"})," of the sale price."]})]})]})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,s.jsx)(c,{className:"w-5 h-5 text-secondary"}),(0,s.jsx)("p",{className:"text-xl font-semibold",children:"Item Details"})]}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("label",{className:"block text-sm font-medium",children:"Calculation Mode"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2 p-1 bg-muted rounded-lg",children:[(0,s.jsx)("button",{className:"px-3 py-2 text-sm font-medium rounded-md transition-colors ".concat("price-to-net"===S?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:()=>I("price-to-net"),children:"Price → Net Earnings"}),(0,s.jsx)("button",{className:"px-3 py-2 text-sm font-medium rounded-md transition-colors ".concat("net-to-price"===S?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),onClick:()=>
6I("net-to-price"),children:"Net Earnings → Price"})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"price-to-net"===S?"Enter item price to calculate your net earnings":"Enter desired net earnings to calculate required price"})]}),(0,s.jsxs)("div",{className:"space-y-4",children:["price-to-net"===S?(0,s.jsxs)("div",{id:"sale-price-section",children:[(0,s.jsx)("label",{htmlFor:"sale-price-input",className:"block text-sm font-medium mb-2",children:"Item Sale Price (in Robux)"}),(0,s.jsx)(i.I,{id:"sale-price-input",type:"number",placeholder:"e.g., 100",value:p,onChange:e=>{g(e.target.value)},className:"text-lg h-12",min:"0",step:"1"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Enter the total price a player pays for your item in Robux"})]}):(0,s.jsxs)("div",{id:"net-earnings-section",children:[(0,s.jsx)("label",{htmlFor:"net-earnings-input",className:"block text-sm font-medium mb-2",children:"Desired Net Earnings (in Robux)"}),(0,s.jsx)(i.I,{id:"net-earnings-input",type:"number",placeholder:"e.g., 70",value:b,onChange:e=>{f(e.target.value)},className:"text-lg h-12",min:"0",step:"1"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Enter how much Robux you want to earn after platform fees"})]}),(0,s.jsxs)("div",{id:"item-type-section",children:[(0,s.jsx)("label",{htmlFor:"item-type-dropdown",className:"block text-sm font-medium mb-2",children:"Select Item Type"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("div",{id:"item-type-dropdown",className:"flex items-center justify-between w-full p-3 border border-input rounded-md bg-background cursor-pointer hover:bg-accent transition-colors",onClick:()=>N(!v),children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"font-medium",children:M.label}),(0,s.jsx)("span",{className:"text-sm text-muted-foreground block",children:M.description})]}),(0,s.jsx)("svg",{className:"w-4 h-4 transition-transform ".concat(v?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),v&&(0,s.jsx)("div",{className:"absolute top-full left-0 right-0 mt-1 bg-background border border-input rounded-md shadow-lg z-50",children:x.map(e=>(0,s.jsxs)("button",{className:"w-full p-3 text-left hover:bg-accent transition-colors border-b border-input last:border-b-0",onClick:()=>{y(e.id),N(!1)},children:[(0,s.jsx)("div",{className:"font-medium",children:e.label}),(0,s.jsxs)("div",{className:"text-sm text-muted-foreground",children:[e.description," • Creator earns"," ",e.creatorShare,"%"]})]},e.id))})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"The revenue split varies by item type. Select the correct category for accurate calculations."})]})]})]}),(0,s.jsxs)("div",{className:"space-y-6 notranslate",translate:"no","data-notranslate":"true",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,s.jsx)(d,{className:"w-5 h-5 text-secondary"}),(0,s.jsx)("p",{className:"text-xl font-semibold",children:"Revenue Breakdown"})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[M.warning&&(0,s.jsx)("div",{className:"p-3 bg-orange-100/50 dark:bg-orange-900/20 rounded-lg border border-orange-200/50 dark:border-orange-800/30",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(m,{className:"w-4 h-4 text-orange-600 dark:text-orange-400"}),(0,s.jsx)("span",{className:"text-sm text-orange-800 dark:text-orange-200 font-medium",children:M.warning})]})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium mb-2",children:"price-to-net"===S?"Your Net Earnings":"Required Sale Price"}),(0,s.jsxs)("div",{className:"p-4 bg-secondary/10 dark:bg-secondary/10 rounded-lg border border-secondary/20 dark:border-secondary/30",children:[(0,s.jsx)("div",{className:"text-3xl font-bold text-secondary dark:text-secondary",children:"price-to-net"===S?"".concat(h(l)," Robux"):"".concat(h(t)," Robux")}),(0,s.jsx)("div",{className:"text-sm text-muted-foreground mt-1",children:"price-to-net"===S?"You keep ".concat(M.creatorShare,"% of the sale price"):"Set this price to earn ".concat(h(l)," Robux")})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium mb-2",children:"price-to-net"===S?"Roblox Platform Fee":"Your Net Earnings"}),(0,s.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,s.jsx)("div",{className:"text-2xl font-bold text-muted-foreground",children:"price-to-net"===S?"".concat(h(u)," Robux"):"".concat(h(l)," Robux")}),(0,s.jsx)("div",{className:"text-sm text-muted-foreground mt-1",children:"price-to-net"===S?"Platform takes ".concat(C,"% (").concat(h(u)," Robux)"):"You keep ".concat(M.creatorShare,"% of the sale price")})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium mb-2",children:"Revenue Split"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsxs)("span",{children:["Your Share (",M.creatorShare,"%)"]}),(0,s.jsxs)("span",{className:"font-medium text-secondary",children:[h(l)," Robux"]})]}),(0,s.jsx)("div",{className:"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-3",children:(0,s.jsx)("div",{className:"bg-secondary h-3 rounded-full transition-all duration-300",style:{width:"".concat(M.creatorShare,"%")}})}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsxs)("span",{children:["Platform Fee (",C,"%)"]}),(0,s.jsxs)("span",{className:"font-medium text-muted-foreground",children:[h(u)," Robux"]})]})]})]})]})]})]}),(0,s.jsxs)("div",{className:"mt-8 pt-6 border-t border-border",children:[(0,s.jsx)("p",{className:"text-lg font-semibold mb-4",children:"Qu
6ick Examples"}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:"price-to-net"===S?[{price:100,label:"Basic Item"},{price:500,label:"Popular Item"},{price:1e3,label:"Premium Item"}].map(e=>{let r=e.price*(M.creatorShare/100),t=e.price*(C/100);return(0,s.jsxs)("button",{className:"p-4 border border-input rounded-lg hover:bg-accent transition-colors text-left",onClick:()=>{g(e.price.toString())},children:[(0,s.jsx)("div",{className:"font-medium",children:e.label}),(0,s.jsxs)("div",{className:"text-sm text-muted-foreground",children:[e.price," Robux →"," ",h(r)," net"]}),(0,s.jsxs)("div",{className:"text-xs text-muted-foreground",children:["(",h(t)," platform fee)"]})]},e.price)}):[{netEarnings:70,label:"Basic Goal"},{netEarnings:350,label:"Popular Goal"},{netEarnings:700,label:"Premium Goal"}].map(e=>{let r=e.netEarnings/(M.creatorShare/100);return(0,s.jsxs)("button",{className:"p-4 border border-input rounded-lg hover:bg-accent transition-colors text-left",onClick:()=>{f(e.netEarnings.toString())},children:[(0,s.jsx)("div",{className:"font-medium",children:e.label}),(0,s.jsxs)("div",{className:"text-sm text-muted-foreground",children:[e.netEarnings," net →"," ",h(r)," price"]}),(0,s.jsxs)("div",{className:"text-xs text-muted-foreground",children:["(",h(C/100*r)," platform fee)"]})]},e.netEarnings)})})]}),(0,s.jsxs)("div",{className:"mt-8 pt-6 border-t border-border",children:[(0,s.jsx)("p",{className:"text-lg font-semibold mb-4",children:"Why This Calculation Matters"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-2 h-2 bg-secondary rounded-full"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Price Strategically:"})," Set prices that ensure profitability and reach earning goals"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-2 h-2 bg-secondary rounded-full"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Reverse Planning:"})," Calculate required prices to meet target earnings"]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-2 h-2 bg-secondary rounded-full"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Forecast Revenue:"})," Accurately project potential earnings from both directions"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"w-2 h-2 bg-secondary rounded-full"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:"Business Planning:"})," Build successful Roblox ventures with precise calculations"]})]})]})]})]}),(0,s.jsx)("div",{className:"mt-6 p-4 bg-orange-50 dark:bg-orange-950/30 rounded-lg border border-orange-200 dark:border-orange-800",children:(0,s.jsxs)("p",{className:"text-sm text-orange-800 dark:text-orange-200",children:[(0,s.jsx)("strong",{children:"Disclaimer:"})," This calculator is for estimation purposes only. Actual earnings may vary based on Roblox's terms and conditions. Revenue splits are subject to change and may have additional conditions not reflected in this tool."]})})]})})})})}},function(e){e.O(0,[612,530,971,938,744],function(){return e(e.s=8729)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.