TS

export const getDiscountedPrice = (baseAmount: number, discount: number) => {
const discountPercentage = discount / 100;
const discountAmount = baseAmount * discountPercentage
const priceAfterDiscount = baseAmount - discountAmount;
return priceAfterDiscount;
}