Change to quotation calculation for website calculator

Selesai Dipasang Dec 8, 2014 Dibayar saat pengiriman
Selesai Dibayar saat pengiriman

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 £1.5m (So if a property was £1m, they would just pay 10% of £75,000).

- Then 12% will be paid over £1.5m (So if a property was £1.7m, 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;
}
}


PHP

ID Proyek: #6839079

Tentang proyek

8 proposal Proyek online Aktif Dec 8, 2014

Diberikan kepada:

AlexandruIfrim

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

£18 GBP dalam 1 hari
(9 Ulasan)
2.8

8 freelancer rata-rata menawar £20 untuk pekerjaan ini

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 Lebih banyak

£21 GBP dalam 1 hari
(269 Ulasan)
6.8
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 dalam 0 hari
(308 Ulasan)
6.8
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 dalam 1 hari
(127 Ulasan)
6.8
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). Lebih banyak

£20 GBP dalam 1 hari
(74 Ulasan)
5.0
janakapdj

A proposal has not yet been provided

£38 GBP dalam 1 hari
(1 Ulasan)
2.5
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. Lebih banyak

£18 GBP dalam 1 hari
(0 Ulasan)
0.0
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 Lebih banyak

£10 GBP dalam 1 hari
(1 Ulasan)
0.0