Can any body help me to solve this for the other discount values

export function priceWithMonthlyDiscount(ratePerHour, numDays, discount) {
 let Discount = (100 - discount)/100
let dayp = ratePerHour * 8;
let price = dayp * numDays * Discount; 
return Math.ceil(price);
}

Not every day gets the discount. You need to determine how many days are part of complete months (look for “Every month has X billable days” in the instructions) – only those days get discounts, the leftover days are not discounted.

Other notes:

  • reuse the dayRate function
  • the discount is provided as a float between 0 and 1.