Amazon FBA Calculator
');
ctx = $("#myChart").get(0).getContext("2d");
var chart = new Chart(ctx, {
// The type of chart we want to create
type: 'bar',
// The data for our dataset
data: {
labels: ["Referral", "Closing Fees", "Shipping", "GST"],
datasets: [{
label: "Amazon Charges",
backgroundColor: ['rgb(255, 99, 132)','rgb(255, 99, 132)','rgb(255, 99, 132)','rgb(255, 99, 132)'],
borderColor: 'rgb(255, 99, 132)',
data: [tref, tclf, asf, grcs],
}]
},
// Configuration options go here
options: { scales: {
yAxes: [{
ticks: {
beginAtZero:true,
callback: function(value, index, values) {
return value.toLocaleString("en-US",{style:"currency", currency:"INR"});
}
}
}]
},
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
return "Rs. " + Number(tooltipItem.yLabel).toFixed(0).replace(/./g, function(c, i, a) {
return i > 0 && c !== "." && (a.length - i) % 3 === 0 ? "," + c : c;
});
}
}
},
legend: {
display: false
}
}
});
var pieChart1Content = document.getElementById('pieChart1Content');
pieChart1Content.innerHTML = ' ';
$('#pieChart1Content').append('
Spendings & Earnings
');
ctx = $("#myChart1").get(0).getContext("2d");
var chart = new Chart(ctx, {
// The type of chart we want to create
type: 'bar',
// The data for our dataset
data: {
labels: ["Price", "Total Charges", "You Make"],
datasets: [{
label: "",
backgroundColor: ['blue','red','green'],
borderColor: 'rgb(255, 99, 132)',
data: [price, tchr, ym],
}]
},
// Configuration options go here
options: { scales: {
yAxes: [{
ticks: {
beginAtZero:true,
callback: function(value, index, values) {
return value.toLocaleString("en-US",{style:"currency", currency:"INR"});
}
}
}]
},
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
return "Rs. " + Number(tooltipItem.yLabel).toFixed(0).replace(/./g, function(c, i, a) {
return i > 0 && c !== "." && (a.length - i) % 3 === 0 ? "," + c : c;
});
}
}
},
legend: {
display: false
}
}
});
}
function total1(){
var asf = document.getElementById('scost').value;
document.getElementById('asf').innerHTML = asf ;
var tref = document.getElementById('tref').innerHTML;
var tclf = document.getElementById('tclf').innerHTML;
var rcs = parseInt(tref) + parseInt(tclf) + parseInt(asf);
document.getElementById('rcs').innerHTML = rcs;
var grcs = rcs*(18/100).toFixed(2);
document.getElementById('grcs').innerHTML = grcs;
//var tchr = (parseInt(rcs) + parseInt(grcs)).toFixed(2);
var tchr = rcs + grcs;
document.getElementById('tchr').innerHTML = tchr;
var price = document.getElementById('price').value;
var ym = (price - tchr).toFixed(2);
document.getElementById('ym').innerHTML = ym;
}
Referral Fees % | Rs. |
Closing Fees | Rs. |
Pick and Pack Fees | Rs. |
Shipping Fees | Rs. |
Referral+Closing+Shipping Fees | Rs. |
GST on Referral+Closing+Shipping Fees | Rs. |
Total Amazon Charges | Rs. |
You Make | Rs. |