Em Andamento

Change to quotation calculation for website calculator

A the moment, we have a online calculator with one of the additional costs being 'Stamp Duty Land Tax'. At the moment the stamp duty tax works on the website based on the figure the customer enters. So for example, if £126,000 is entered, it calculates 1% of that number. The breakdown is as below:

0 – 125,000 = 0%

125,001 – 250,000 = 1%

250,001 – 500,000 = 3%

Over 500,001 = 4%

Stamp Duty Tax though has now changed and is more complex.

- No stamp duty is paid for the first £125,000 of a property.

- Then 2% will be paid on the proportion up to £250,000 (So if a property was £180,000, they would just pay 2% of £55,000).

- Then 5% will be paid up to £925,000 (So if a property was £450,000, they would just pay 5% of £200,000).

- Then 10% will be paid up to £[url removed, login to view] (So if a property was £1m, they would just pay 10% of £75,000).

- Then 12% will be paid over £[url removed, login to view] (So if a property was £[url removed, login to view], they would just pay 10% of £75,000).

A document attached also explains this change.

I simply need the function code to be changed for this. Below is the code that is currently used for the simply calculation:

public function getLandRegistryFee($purchaseamt = 0 ) {

if( $purchaseamt) {

if($purchaseamt > 0 and $purchaseamt <= 50000) {

return 40;

} else if($purchaseamt >= 50001 and $purchaseamt <= 80000) {

return 70;

} else if($purchaseamt >= 80001 and $purchaseamt <= 101000) {

return 120;

} else if($purchaseamt >= 101001 and $purchaseamt < 201000) {

return 190;

} else if($purchaseamt >= 201000 and $purchaseamt < 501000) {

return 270;

} else if($purchaseamt >= 501000){

return 540;

} else{

return 0;

}

} else {

return 0;

}

}

Sorry, that was the incorrect piece of code. The correct code is below:


public function getStampDutyLandTax($purchaseamt = 0 ) {

if( $purchaseamt) {

if($purchaseamt > 0 and $purchaseamt <= 125000) {
return 0;

} else if($purchaseamt >= 125001 and $purchaseamt <= 250000) {
return ($purchaseamt*1)/100;

} else if($purchaseamt >= 250001 and $purchaseamt <= 500000) {
return ($purchaseamt*3)/100;

} else if($purchaseamt >= 500001) {
return ($purchaseamt*4)/100;

} else {
return 0;
}

} else {
return 0;
}
}


Habilidades: PHP

Ver mais: example of a website quotation, website calculator, php change, stamp online, online calculation, online stamp, website calculator php, php online calculator, pay change, change customer number php, website database quotation calculator, calculator online php, example php calculator, php calculation, quotation calculation, calculation php, php tax calculator, 001 website, php quotation calculator, need quotation, calculation website, php calculator example, develop calculator website, web form taxi fare calculator website, flash calculator website

Acerca do Empregador:
( 7 comentários ) Frome, United Kingdom

ID do Projeto: #6839079

Premiar a:

AlexandruIfrim

I have already done it. I used [url removed, login to view] to better understand the process.

£18 GBP em 1 dia
(4 Avaliações)
1.8

9 freelancers estão ofertando em média £19 para este trabalho

shihan033010

Hi i have understand the logic. I can complete it quickly. Please accept the bid. I am ready to start it. Regards Shihan

£13 GBP in 0 dias
(242 Comentários)
6.4
csajit

HELLO THERE, Over 190+ Positive Reviews. Over 90% Completion Rate. 5 Star Rating. 8+ Years of experience in PHP/MYSQL I AM INTERESTED IN WORKING ON THIS PROJECT. PLEASE CHECK MY REVIEWS AND THEN DECIDE ON Mais

£21 GBP em 1 dia
(182 Comentários)
6.3
gutibs

Hello, i can have it done today. let me know if interested. ps, if you want i can solve it before you accept my bid. Thanks !

£19 GBP em 1 dia
(45 Comentários)
5.3
r0mannn

HI I can change your php script to do the right calculations. But are you sure you did the right calculation here: - Then 10% will be paid up to £1.5m (So if a property was £1m, they would just pay 10% of £75,000). Mais

£20 GBP em 1 dia
(63 Comentários)
4.4
jasbirsaini30

I am Jasbir Singh (Web Professional). I saw your requirement in your job post and i fulfill all those requirement. I can do this job perfectly, so you can discuss more with me and award me the job. i want long term cli Mais

£17 GBP em 1 dia
(23 Comentários)
4.1
Nagemag

Hello, at first your project seemed confusing, but after I read it few times, I understood that it is nothing special, in fact it is easy. I would easely do it. Without blarney I can tell you that I am cheapest and bes Mais

£10 GBP em 1 dia
(1 Comentário)
0.0
daveashish

Hello, I have more than 7+ years of robust experience in web development. My Expertise : - I have good knowledge in PHP, Wordpress, Druapl, Magento, Zen Cart, OScommerce, Woocommerce, Buddy Press, Prestashop. Mais

£18 GBP em 1 dia
(0 Comentários)
0.0
janakapdj

A proposal has not yet been provided

£38 GBP em 1 dia
(0 Comentários)
0.0