Simple credit calculator (plain HTML + JS)