Fly carbon neutral

British Airways has partnered with charity Pure Leapfrog to allow you to offset your flight
if(navigator.appName == 'Microsoft Internet Explorer' || navigator.userAgent.indexOf('MSIE')!==-1 || navigator.appVersion.indexOf('Trident/') > -1) {alert("You appear to be using Internet Explorer. This browser is not currently supported by the calculator. We aim to bring compatibility shortly. In the meantime please open in another browser: Chrome, Safari, Firefox, Edge and many more are supported.")} console.log(navigator.userAgent.indexOf('MSIE')) console.log(navigator.appVersion.indexOf('Trident/'))
Join us in acting on climate change by making your flight carbon neutral in three easy steps.


British Airways has made all flights within the UK carbon neutral so on these flights there is no need to offset your emissions.*

*Emissions from all BA flights within the UK are partly covered by the EU Emissions Trading System (ETS). Residual emissions are voluntarily offset by BA so there’s no need to offset through this programme.



1. Enter you journey details below to calculate the emissions.

// https://cdn.jsdelivr.net/gh/Gra-miel/airports@master/dist/index.browser.min.js // Options for format of autocomplete suggestions var options = { formatting: `<div class="$(unique-result)" single-result" data-index="$(i)"> $(IATA) $(name)
$(city), $(country)
` }; var activefields = []; var oneortwoway = 2 var projectchoice = 3 var project_selected_name = "an equal mix of all our projects: Cardamon REDD+, Darfur Cook Stoves and Cordillera Azul REDD+" AirportInput("fld_8213487_1", options); AirportInput("fld_7962626_1", options); AirportInput("fld_4385396_1", options); AirportInput("fld_8260504_1", options); AirportInput("fld_5268165_1", options); AirportInput("fld_2146779_1", options); document.getElementById("fld_8213487_1").autocomplete ="off"; document.getElementById("fld_7962626_1").autocomplete ="off"; document.getElementById("fld_4385396_1").autocomplete ="off"; document.getElementById("fld_8260504_1").autocomplete ="off"; document.getElementById("fld_5268165_1").autocomplete ="off"; document.getElementById("fld_2146779_1").autocomplete ="off"; window.onload = function(){ const slider = document.getElementById("offsets_slider"); const slider_button = document.getElementById("slider_button"); const cardamom_button = document.getElementById("cardamom_button_1"); const darfur_button = document.getElementById("darfur_button_1"); const cordillera_button = document.getElementById("cordillera_button_1"); const mix_button = document.getElementById("mix_button"); const project_image_src = [ "https://www.pureleapfrog.org/wp-content/uploads/2019/10/Cardamom-1-21-9-1920-Opt.jpg", "https://www.pureleapfrog.org/wp-content/uploads/2019/10/Darfur-2-21-9-1920-Opt.jpg", "https://www.pureleapfrog.org/wp-content/uploads/2019/10/Cordillera-21-9-1920-Opt.jpg", "https://www.pureleapfrog.org/wp-content/uploads/2019/10/Mix-3-21-9-1920-Opt.jpg"] const project_names = ["the Verified Carbon Standard project Cardamom REDD+, Cambodia", "the Gold Standard project Darfur Low Smoke Cook Stoves, Sudan", "the Verified Carbon Standard project Cordillera Azul National Park REDD+, Amazon, Peru", "an equal mix of all our projects: Cardamon REDD+, Darfur Cook Stoves and Cordillera Azul REDD+"] const cardamom_background = document.querySelector(".et_pb_column_6") const darfur_background = document.querySelector(".et_pb_column_7") const cordillera_background = document.querySelector(".et_pb_column_8") const mix_background = document.querySelector(".et_pb_column_9") cardamom_button.addEventListener('click', function (event) { event.preventDefault(); cardamom_background.style.backgroundColor = "lightblue"; darfur_background.style.backgroundColor = "rgb(255,255,255)"; cordillera_background.style.backgroundColor = "rgb(255,255,255)"; mix_background.style.backgroundColor = "rgb(255,255,255)"; cardamom_button.textContent="Selected" darfur_button.textContent="Select" cordillera_button.textContent="Select" mix_button.textContent="Select" project_selected_name = project_names[0] document.getElementById("selected_project_name").textContent = project_selected_name; console.log(project_selected_name) projectchoice = 0 arraybuilder() checkDistance(...activefields) }); darfur_button.addEventListener('click', function (event) { event.preventDefault(); cardamom_background.style.backgroundColor = "rgb(255,255,255)"; darfur_background.style.backgroundColor = "lightblue"; cordillera_background.style.backgroundColor = "rgb(255,255,255)"; mix_background.style.backgroundColor = "rgb(255,255,255)"; cardamom_button.textContent="Select" darfur_button.textContent="Selected" cordillera_button.textContent="Select" mix_button.textContent="Select" project_selected_name = project_names[1] document.getElementById("selected_project_name").textContent = project_selected_name; console.log(project_selected_name) projectchoice = 1 arraybuilder() checkDistance(...activefields) }); cordillera_button.addEventListener('click', function (event) { event.preventDefault(); cardamom_background.style.backgroundColor = "rgb(255,255,255)"; darfur_background.style.backgroundColor = "rgb(255,255,255)"; cordillera_background.style.backgroundColor = "lightblue"; mix_background.style.backgroundColor = "rgb(255,255,255)"; cardamom_button.textContent="Select" darfur_button.textContent="Select" cordillera_button.textContent="Selected" mix_button.textContent="Select" project_selected_name = project_names[2] document.getElementById("selected_project_name").textContent = project_selected_name; console.log(project_selected_name) projectchoice = 2 arraybuilder() checkDistance(...activefields) }); mix_button.addEventListener('click', function (event) { event.preventDefault(); cardamom_background.style.backgroundColor = "rgb(255,255,255)"; darfur_background.style.backgroundColor = "rgb(255,255,255)"; cordillera_background.style.backgroundColor = "rgb(255,255,255)"; mix_background.style.backgroundColor = "lightblue"; cardamom_button.textContent="Select" darfur_button.textContent="Select" cordillera_button.textContent="Select" mix_button.textContent="Selected" project_selected_name = project_names[3] document.getElementById("selected_project_name").textContent = project_selected_name; console.log(project_selected_name) projectchoice = 3 arraybuilder() checkDistance(...activefields) }); slider_button.addEventListener('click', function (event) { event.preventDefault(); let slide_data = slider.getAttribute("data-active-slide"); projectchoice = slide_data.slice(-1) console.log (projectchoice) project_selected_name = project_names[projectchoice] document.getElementById("selected_project_name").textContent = project_selected_name; console.log(project_selected_name) arraybuilder() checkDistance(...activefields) }); const results_to_click = document.getElementsByClassName("autocomplete-results") for (const result_to_click of results_to_click) {result_to_click.addEventListener('click', function (event) { arraybuilder() checkDistance(...activefields) }); } /***const holiday = document.querySelector(".termslink .checkbox-inline") const tandc = document.createElement("a"); holiday.appendChild(tandc); tandc.textContent = "Terms and Conditions agreement"; tandc.href = "https://www.pureleapfrog.org/ba/offsetting-terms-conditions"***/ } document.getElementById("fld_8213487_1").onchange = function () { console.log(document.getElementById("fld_8213487_1").value) arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_7962626_1").onchange = function () { console.log(document.getElementById("fld_7962626_1").value) arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_4385396_1").onchange= function () { console.log(document.getElementById("fld_4385396_1").value) arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_8260504_1").onchange = function () { console.log(document.getElementById("fld_8260504_1").value) console.log(getIata("fld_8260504_1")) arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_5268165_1").onchange = function () { console.log(document.getElementById("fld_5268165_1").value) arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_2146779_1").onchange = function () { console.log(document.getElementById("fld_2146779_1").value) arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_8349053_1").onchange = function () { arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_3160295_1").onchange = function () { arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_8049329_1_opt1722423").onclick = function () { oneortwoway = 2 arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_8049329_1_opt1707713").onclick = function () { oneortwoway = 1 arraybuilder() checkDistance(...activefields) }; document.getElementById("fld_6712624_1").onclick = function (event) { console.log("clicked") const extradestinations = document.querySelectorAll(".hiddencalc2"); extradestinations.forEach((element) => {element.style.display = "block"}); console.log(extradestinations) }; document.getElementById("fld_1847338_1").onclick = function (event) { console.log("Reset fields.") document.getElementById("fld_3569980_1").value = 0; document.getElementById("fld_3569980_1").dispatchEvent(new Event ('change')); document.getElementById("cardamom_cost").textContent = (0).toFixed(2); document.getElementById("darfur_cost").textContent = (0).toFixed(2); document.getElementById("cordillera_cost").textContent = (0).toFixed(2); document.getElementById("mixed_cost").textContent = (0).toFixed(2); document.getElementById("cost_to_offset").textContent = (0).toFixed(2); document.getElementById("net_amount_to_offset").textContent = (0).toFixed(2); document.getElementById("gross_amount_to_offset").textContent = (0).toFixed(2); document.getElementById("adjustment_amount").textContent = (0).toFixed(2); document.getElementById("adjustment_notice").style.display="none"; document.getElementById("if_net_zero_hide").style.display="none" document.getElementById("if_net_zero_show").textContent=""; document.getElementById("adjustment_asterisk").textContent=""; const totalprice = document.querySelectorAll(".Inject_price"); const price = document.querySelectorAll(".Offset_price"); totalprice.forEach(function(element, index) { let totalprices = price[index].textContent; element.textContent = totalprices;}); }; function getCoordinates(field) { return ([document.getElementById(field).getAttribute("data-lat"), document.getElementById(field).getAttribute("data-lon")]) } function getCountry(field) { return (document.getElementById(field).getAttribute("data-country")) } function getIata(field) { return (document.getElementById(field).getAttribute("data-iata")) } //Determine emissions factor to apply to distance function carbon(field1, field2, calcdist) { var depco = document.getElementById(field1).getAttribute("data-country") var destco = document.getElementById(field2).getAttribute("data-country") var longhaul = [document.getElementById("fld_486036_1").value, document.getElementById("fld_4421415_1").value, document.getElementById("fld_1128755_1").value, document.getElementById("fld_3131835_1").value] var international = [document.getElementById("fld_8859561_1").value, document.getElementById("fld_2756554_1").value, document.getElementById("fld_2350785_1").value, document.getElementById("fld_1474111_1").value] var shorthaul = [document.getElementById("fld_7358597_1").value, document.getElementById("fld_8427624_1").value, document.getElementById("fld_8893854_1").value, document.getElementById("fld_3949378_1").value] var domestic = [document.getElementById("fld_1907547_1").value, document.getElementById("fld_5621106_1").value, document.getElementById("fld_1558939_1").value, document.getElementById("fld_8378521_1").value] var travelclass = document.getElementById("fld_8349053_1").value var distlimit = document.getElementById("fld_7635032_1").value var eeaco = document.getElementById("fld_6338346_1").value var outermost = document.getElementById("fld_228847_1").value var eeaco_array = eeaco.split(",") var outermost_array = outermost.split(",") var euets_adj = (eeaco_array.includes(depco) && eeaco_array.includes(destco) && !outermost_array.includes(getIata(field1)) && !outermost_array.includes(getIata(field2))) ? document.getElementById("fld_8963291_1").value : 1 if(depco === "United Kingdom" && destco === "United Kingdom") {return domestic[travelclass] * 0;} else if (depco != "United Kingdom" && destco != "United Kingdom") {return international[travelclass] * euets_adj;} else if (calcdist > distlimit) {return longhaul[travelclass] * euets_adj;} else {return shorthaul[travelclass] * euets_adj;} } function carbon_domestic(field1, field2, calcdist) { var depco = document.getElementById(field1).getAttribute("data-country") var destco = document.getElementById(field2).getAttribute("data-country") var longhaul = [document.getElementById("fld_486036_1").value, document.getElementById("fld_4421415_1").value, document.getElementById("fld_1128755_1").value, document.getElementById("fld_3131835_1").value] var international = [document.getElementById("fld_8859561_1").value, document.getElementById("fld_2756554_1").value, document.getElementById("fld_2350785_1").value, document.getElementById("fld_1474111_1").value] var shorthaul = [document.getElementById("fld_7358597_1").value, document.getElementById("fld_8427624_1").value, document.getElementById("fld_8893854_1").value, document.getElementById("fld_3949378_1").value] var domestic = [document.getElementById("fld_1907547_1").value, document.getElementById("fld_5621106_1").value, document.getElementById("fld_1558939_1").value, document.getElementById("fld_8378521_1").value] var travelclass = document.getElementById("fld_8349053_1").value var distlimit = document.getElementById("fld_7635032_1").value var eeaco = document.getElementById("fld_6338346_1").value var outermost = document.getElementById("fld_228847_1").value var eeaco_array = eeaco.split(",") var outermost_array = outermost.split(",") var euets_adj = (eeaco_array.includes(depco) && eeaco_array.includes(destco) && !outermost_array.includes(getIata(field1)) && !outermost_array.includes(getIata(field2))) ? document.getElementById("fld_8963291_1").value : 1 if(depco === "United Kingdom" && destco === "United Kingdom") {return domestic[travelclass] * 1;} else if (depco != "United Kingdom" && destco != "United Kingdom") {return international[travelclass] * euets_adj;} else if (calcdist > distlimit) {return longhaul[travelclass] * euets_adj;} else {return shorthaul[travelclass] * euets_adj;} } function carbon_euets(field1, field2, calcdist) { var depco = document.getElementById(field1).getAttribute("data-country") var destco = document.getElementById(field2).getAttribute("data-country") var longhaul = [document.getElementById("fld_486036_1").value, document.getElementById("fld_4421415_1").value, document.getElementById("fld_1128755_1").value, document.getElementById("fld_3131835_1").value] var international = [document.getElementById("fld_8859561_1").value, document.getElementById("fld_2756554_1").value, document.getElementById("fld_2350785_1").value, document.getElementById("fld_1474111_1").value] var shorthaul = [document.getElementById("fld_7358597_1").value, document.getElementById("fld_8427624_1").value, document.getElementById("fld_8893854_1").value, document.getElementById("fld_3949378_1").value] var domestic = [document.getElementById("fld_1907547_1").value, document.getElementById("fld_5621106_1").value, document.getElementById("fld_1558939_1").value, document.getElementById("fld_8378521_1").value] var travelclass = document.getElementById("fld_8349053_1").value var distlimit = document.getElementById("fld_7635032_1").value var eeaco = document.getElementById("fld_6338346_1").value var outermost = document.getElementById("fld_228847_1").value var eeaco_array = eeaco.split(",") var outermost_array = outermost.split(",") var euets_adj = 1 if(depco === "United Kingdom" && destco === "United Kingdom") {return domestic[travelclass] * 0;} else if (depco != "United Kingdom" && destco != "United Kingdom") {return international[travelclass] * euets_adj;} else if (calcdist > distlimit) {return longhaul[travelclass] * euets_adj;} else {return shorthaul[travelclass] * euets_adj;} } //Great Circle Distance calculation function distance(lat1, lon1, lat2, lon2) { var R = 6371e3; // metres lat1 = parseFloat(lat1) lat2 = parseFloat(lat2) lon1 = parseFloat(lon1) lon2 = parseFloat(lon2) var f1 = lat1.toRadians(); var f2 = lat2.toRadians(); var df = (lat2 - lat1).toRadians(); var dl = (lon2 - lon1).toRadians(); var a = Math.sin(df / 2) * Math.sin(df / 2) + Math.cos(f1) * Math.cos(f2) * Math.sin(dl / 2) * Math.sin(dl / 2); var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); var d = R * c; return d; } if (typeof (Number.prototype.toRadians) === "undefined") { Number.prototype.toRadians = function () { return this * Math.PI / 180; } } function checkDistance(...thefields) { return new Promise ((resolve, reject) => { setTimeout(function () { if(thefields.length > 1 && !document.getElementById("fld_8213487_1").value.length == 0 && !document.getElementById("fld_7962626_1").value.length == 0) { let sumofdistance = 0 let sumofemissions = 0 let sumofemissions_domestic = 0 let sumofemissions_euets = 0 let airport_summary = [] let passengers = document.getElementById("fld_3160295_1").value let travelclass_name = document.getElementById("fld_8349053_1").value airport_summary.push(passengers, oneortwoway, travelclass_name) try { for (let i = 0; i < thefields.length - 1; i++) { var calcdist = distance(...getCoordinates(thefields[i]), ...getCoordinates(thefields[i+1])) / 1000; console.log(calcdist) if (passengers 9) { passengers = 1; document.getElementById("fld_3160295_1").value = passengers; alert("Please enter a passenger value between 1 and 9. For larger group offsetting please contact info@pureleapfrog.org.") } let emissions = carbon(thefields[i], thefields[i+1], calcdist) * calcdist * passengers * oneortwoway / 1000 let emissions_domestic = carbon_domestic(thefields[i], thefields[i+1], calcdist) * calcdist * passengers * oneortwoway / 1000 let emissions_euets = carbon_euets(thefields[i], thefields[i+1], calcdist) * calcdist * passengers * oneortwoway / 1000 sumofdistance += calcdist; sumofemissions += emissions; sumofemissions_domestic += emissions_domestic sumofemissions_euets += emissions_euets airport_summary.push(document.getElementById(thefields[i]).value); console.log(document.getElementById(thefields[i]).value) console.log(emissions) console.log (sumofemissions) resolve(emissions) } } catch (e) { document.getElementById("cardamom_cost").textContent = (0).toFixed(2); document.getElementById("darfur_cost").textContent = (0).toFixed(2); document.getElementById("cordillera_cost").textContent = (0).toFixed(2); document.getElementById("mixed_cost").textContent = (0).toFixed(2); document.getElementById("cost_to_offset").textContent = (0).toFixed(2); document.getElementById("net_amount_to_offset").textContent = (0).toFixed(2); document.getElementById("gross_amount_to_offset").textContent = (0).toFixed(2); document.getElementById("adjustment_amount").textContent = (0).toFixed(2); alert("Please make sure you have selected a valid airport in each field.") } airport_summary.push(document.getElementById(thefields[thefields.length-1]).value) airport_summary.push(sumofdistance) document.getElementById("fieldname8_1").value = airport_summary.join() document.getElementById("fieldname8_1").dispatchEvent(new Event ('change')) let sumofemissionsrounded = sumofemissions.toFixed(2); let sumofemissions_domesticrounded = sumofemissions_domestic.toFixed(2); let sumofemissions_euetsrounded = sumofemissions_euets.toFixed(2); document.getElementById("fld_2109063_1").value = sumofdistance; document.getElementById("fld_3569980_1").value = sumofemissionsrounded; document.getElementById("adjustment_notice").style.display="none"; document.getElementById("if_net_zero_hide").style.display="none"; document.getElementById("if_net_zero_show").textContent=""; document.getElementById("adjustment_asterisk").textContent=""; document.getElementById("fld_3569980_1").dispatchEvent(new Event ('change')); if(isNaN(sumofemissionsrounded)) {document.getElementById("net_amount_to_offset").textContent = "0.00"; document.getElementById("gross_amount_to_offset").textContent = "0.00"; document.getElementById("adjustment_amount").textContent = "0.00"; } else {document.getElementById("net_amount_to_offset").textContent = sumofemissionsrounded; let domestic_emissions = (sumofemissions_domesticrounded - sumofemissionsrounded).toFixed(2); let euets_emissons = (sumofemissions_euetsrounded - sumofemissionsrounded).toFixed(2); let adjustment_offset = (sumofemissions_domestic + sumofemissions_euets - (2 * sumofemissions)).toFixed(2); let sumofgrossemissionsrounded = (sumofemissionsrounded * 1 + adjustment_offset * 1).toFixed(2); document.getElementById("gross_amount_to_offset").textContent = sumofgrossemissionsrounded; document.getElementById("adjustment_amount").textContent = adjustment_offset; if(domestic_emissions>0 || euets_emissons>0) { document.getElementById("adjustment_notice").style.display="inline"; document.getElementById("if_net_zero_hide").style.display="inline"; } if (domestic_emissions>0 && sumofemissionsrounded==0) { document.getElementById("if_net_zero_hide").style.display="none"; document.getElementById("if_net_zero_show").textContent=" so there is no need to make a further offset for this flight"; } if(domestic_emissions>0 && euets_emissons>0) { document.getElementById("adjustment_asterisk").textContent = "**The emissions from your flight are regulated " + "by the EU Emissions Trading System. We have subtracted the emissions reductions already " + "accounted and paid for through our participation in this scheme so that you only offset the residual emissions. " + " British Airways has made all flights within the UK carbon zero so on these flights there is no need to offset your emissions." } else if (domestic_emissions>0) { document.getElementById("adjustment_asterisk").textContent = "**British Airways has made all flights within the " + "UK carbon neutral so on these flights there is no need to offset your emissions." } else if (euets_emissons>0) { document.getElementById("adjustment_asterisk").textContent = "**The emissions from your flight are regulated " + "by the EU Emissions Trading System. We have subtracted the emissions reductions already " + "accounted and paid for through our participation in this scheme so that you only offset the residual emissions." } } const totalprice = document.querySelectorAll(".Inject_price"); const price = document.querySelectorAll(".Offset_price"); const projectoptions = document.querySelectorAll(".project_radios") let projectprices = [5.75, 4.99, 4.45, 5.07] let projectprice = projectprices[projectchoice] let cardamomprice = 5.75; let cordilleraprice = 4.45; let darfurprice = 4.99; let mixedprice = 5.07; let costtooffset_cardamom = (sumofemissionsrounded * cardamomprice) let costtooffset_cardamom_total document.getElementById("min_price_notice").textContent ="" if(isNaN(costtooffset_cardamom) || costtooffset_cardamom==0) { costtooffset_cardamom_total = (0).toFixed(2); } else if(costtooffset_cardamom <= 10) { costtooffset_cardamom_total = Math.max(1,(costtooffset_cardamom + 0.3)).toFixed(2); } else { costtooffset_cardamom_total = (costtooffset_cardamom + 0.5).toFixed(2); } document.getElementById("cardamom_cost").textContent = costtooffset_cardamom_total; let costtooffset_darfur = (sumofemissionsrounded * darfurprice) let costtooffset_darfur_total if(isNaN(costtooffset_darfur) || costtooffset_darfur==0) { costtooffset_darfur_total = (0).toFixed(2); } else if(costtooffset_darfur <= 10) { costtooffset_darfur_total = Math.max(1,(costtooffset_darfur + 0.3)).toFixed(2); } else { costtooffset_darfur_total = (costtooffset_darfur + 0.5).toFixed(2); } document.getElementById("darfur_cost").textContent = costtooffset_darfur_total; let costtooffset_cordillera = (sumofemissionsrounded * cordilleraprice) let costtooffset_cordillera_total if(isNaN(costtooffset_cordillera) || costtooffset_cordillera==0) { costtooffset_cordillera_total = (0).toFixed(2); } else if(costtooffset_cordillera <= 10) { costtooffset_cordillera_total = Math.max(1,(costtooffset_cordillera + 0.3)).toFixed(2); } else { costtooffset_cordillera_total = (costtooffset_cordillera + 0.5).toFixed(2); } document.getElementById("cordillera_cost").textContent = costtooffset_cordillera_total; let costtooffset_mixed = (sumofemissionsrounded * mixedprice) let costtooffset_mixed_total if(isNaN(costtooffset_mixed) || costtooffset_mixed==0) { costtooffset_mixed_total = (0).toFixed(2); } else if(costtooffset_mixed <= 10) { costtooffset_mixed_total = Math.max(1,(costtooffset_mixed + 0.3)).toFixed(2); } else { costtooffset_mixed_total = (costtooffset_mixed + 0.5).toFixed(2); } document.getElementById("mixed_cost").textContent = costtooffset_mixed_total; let costtooffset = (sumofemissionsrounded * projectprice) let costtooffset_total if(isNaN(costtooffset) || costtooffset==0) { costtooffset_total = (0).toFixed(2); } else if(costtooffset <= 10) { costtooffset_total = Math.max(1,(costtooffset + 0.3)).toFixed(2); if (costtooffset_total <= 1) {document.getElementById("min_price_notice").textContent = "Please note that the " + "minimum transaction size is £1.00. Any surplus from rounding will be donated to the BA Carbon Fund, a charitable " + "fund supporting community projects in the UK and Africa."} } else { costtooffset_total = (costtooffset + 0.5).toFixed(2); } document.getElementById("cost_to_offset").textContent = costtooffset_total; document.getElementById("selected_project_name").textContent = project_selected_name; document.getElementById("fld_7152823_1").value = costtooffset_total; document.getElementById("fld_3026756_1").value = sumofemissionsrounded; document.getElementById("fld_7843149_1").value = project_selected_name; document.getElementById("fld_7152823_1").dispatchEvent(new Event ('change')); document.getElementById("fld_3026756_1").dispatchEvent(new Event ('change')); document.getElementById("fld_7843149_1").dispatchEvent(new Event ('change')); document.getElementById("fieldname6_1").value = costtooffset_total; document.getElementById("fieldname7_1").value = sumofemissionsrounded; document.getElementById("fieldname5_1").value = project_selected_name; document.getElementById("fieldname6_1").dispatchEvent(new Event ('change')); document.getElementById("fieldname7_1").dispatchEvent(new Event ('change')); document.getElementById("fieldname5_1").dispatchEvent(new Event ('change')); console.log(project_selected_name) /***const quantities = document.querySelectorAll(".Inject_quantity .input-text"); quantities.forEach(function(element) {element.value = sumofemissionsrounded;}); console.log(quantities) console.log(parseFloat(price[1].textContent.slice(1))) totalprice.forEach(function(element, index) { let totalprices = quantities[index].value * parseFloat(price[index].textContent.slice(1)); let totalpricesrounded = "£"+totalprices.toFixed(2); element.textContent = totalpricesrounded;});***/ } else { document.getElementById("cardamom_cost").textContent = (0).toFixed(2); document.getElementById("darfur_cost").textContent = (0).toFixed(2); document.getElementById("cordillera_cost").textContent = (0).toFixed(2); document.getElementById("mixed_cost").textContent = (0).toFixed(2); document.getElementById("cost_to_offset").textContent = (0).toFixed(2); document.getElementById("net_amount_to_offset").textContent = (0).toFixed(2); document.getElementById("gross_amount_to_offset").textContent = (0).toFixed(2); document.getElementById("adjustment_amount").textContent = (0).toFixed(2); } }, 1000) }); //let result = await promise // console.log (result) //return result } async function emissionscalc(field1, field2, field3) { var emissions1 = await checkDistance(field1, field3) var emissions2 = await checkDistance(field2, field3) console.log (emissions1) console.log (emissions2) var totalemissions = emissions1 + emissions2 console.log(totalemissions) arraybuilder() return totalemissions } function arraybuilder () { activefields.length = 0 if (!document.getElementById("fld_8213487_1").value.length == 0) {activefields.push("fld_8213487_1");} if (!document.getElementById("fld_4385396_1").value.length == 0) {activefields.push("fld_4385396_1");} if (!document.getElementById("fld_8260504_1").value.length == 0) {activefields.push("fld_8260504_1");} if (!document.getElementById("fld_5268165_1").value.length == 0) {activefields.push("fld_5268165_1");} if (!document.getElementById("fld_2146779_1").value.length == 0) {activefields.push("fld_2146779_1");} if (!document.getElementById("fld_7962626_1").value.length == 0) {activefields.push("fld_7962626_1");} console.log(activefields) }
2. Next please select one of our fantastic emission reduction projects to offset with.
Forest protection in Cardamom, Cambodia
Protect the last great rainforest of Asia and support sustainable livelihoods.

Find out more.

Cost to fly carbon zero £0.00.
Sustainable cook stoves in Darfur, Sudan
Reduce emissions and save lives replacing wood and charcoal with low smoke stoves.

Find out more.

Cost to fly carbon zero £0.00.
Forest protection in Cordillera Azul, Peru
Protect the rainforest of the Cordillera Azul National Park, a jewel of the Amazon basin.

Find out more.

Cost to fly carbon zero £0.00.
A mix of all three of these great projects
Can’t decide? Choose to contribute an equal amount to each of our projects.


Cost to fly carbon zero £0.00.
3. Finish by filling in your payment details to complete the process and receive your certificate. You have selected an equal mix of all projects: Cardamom REDD+, Darfur Cook Stoves and Cordillera Azul, REDD+.


Your total CO2 emissions for this flight are 0.00 tCO2e.
British Airways has already accounted for 0.00 tCO2e** so you only need to offset 0.00 tCO2e.


Cost to offset £0.00.


All emissions calculations are based on the UK Government’s latest carbon emission factors (BEIS, 2019).


If you would like to find out more please see our FAQS.