(MonthNos*2-1)*Interrest As MiniPay maybe this code not correct
SELECT balanceborow.wid, balanceborow.wname, balanceborow.amout, CEILING(balanceborow.amout*.02) AS Interrest, balanceborow.DateBalance, balanceborow.amout, Round(DATEDIFF( NOW() , balanceborow.DateBalance)/30, 0) As MonthNos, (MonthNos*2-1)*Interrest As MiniPay
WHERE balanceborow.wid ='$AccNo'
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.