how to calculate with javascript metode Output #4