The Securities Transaction Tax (STT) in India is calculated based on the type of security being traded and the type of transaction being carried out. The rates of STT are different for different types of securities and transactions, and they are expressed as a percentage of the transaction value.