Numerology turns a name or a birth date into numbers that people use to learn about personality and life path. In this project you will build a small calculator app that takes a name and a birth date, computes the Mulank (birth number), Bhagyank (destiny number), and Naamank (name number), and shows what each one means. It is a fun project, and it teaches you string handling, date math, and DOM updates in one go.
If you want to understand what these numbers actually mean before you code, read this numerology guide — it explains Mulank, Bhagyank, and Naamank step by step with worked examples.
How the numbers work: Mulank comes from the birth day alone — add its digits until one digit remains (so 23 becomes 2 + 3 = 5). Bhagyank comes from the full birth date — add every digit of day, month, and year until one digit remains. Naamank comes from the letters of a name, where A=1, B=2, and so on up to I=9, then J=1 again, repeating in cycles of nine.
<input id="name" placeholder="Your name">
<input id="dob" type="date">
<button id="calc">Calculate</button>
<div id="result"></div>
const letterValue = ch => {
const code = ch.toUpperCase().charCodeAt(0) - 64;
return code >= 1 && code <= 26 ? ((code - 1) % 9) + 1 : 0;
};
const reduce = n => {
while (n > 9) n = String(n).split('').reduce((a, d) => a + +d, 0);
return n;
};
const mulank = dob => reduce(new Date(dob).getDate());
const bhagyank = dob => reduce(
dob.replaceAll('-', '').split('').reduce((a, d) => a + +d, 0)
);
const naamank = name =>
reduce([...name].reduce((a, ch) => a + letterValue(ch), 0));
document.getElementById('calc').onclick = () => {
const name = document.getElementById('name').value;
const dob = document.getElementById('dob').value;
if (!name || !dob) return alert('Enter a name and birth date');
document.getElementById('result').innerHTML = `
<p>Mulank (birth number): <b>${mulank(dob)}</b></p>
<p>Bhagyank (destiny number): <b>${bhagyank(dob)}</b></p>
<p>Naamank (name number): <b>${naamank(name)}</b></p>`;
};
Keep the project honest: the app is a calculator, not a fortune teller. Show the numbers and their traditional meanings, and say clearly that numerology is a belief system, not a science. That honesty is what makes the project trustworthy.
Try extending it next: add a small meaning for each number from 1 to 9, save past calculations in localStorage, and let users share their result as text. You will practise objects, storage, and the Clipboard API along the way.
Top comments (0)