Program to find the Break Even Point | Function to calculate Break Even Point ; Calculating number of articles to be sold ; Main Function
function breakEvenPoint ( exp , S , M ) { var earn = S - M ; var res = Math . ceil ( exp / earn ) ; return res ; } var exp = 3550 , S = 90 , M = 65 ; document . write ( breakEvenPoint ( exp , S , M ) ) ;