I'm trying to set a value to be used inside \vspace{} based on a value provided by a function which reads it from the keyboard. For example, if the provided value is 3, I would like for \vspace{} to be
\vspace{(3-1)0.6 cm}
What I've tried to do, without success, is
\documentclass[]{paper}
\usepackage{calc}
\newcommand{\titlelines}[1]{\def\@TitleLines{#1}}
\titlelines{3}
\newlength{\mylength}
\setlength{\mylength}{{\@TitleLines-1}*0.6}
\title{text \\ \vspace*{\mylength cm} more text}
\begin{document}
\maketitle
\end{document}
I don't know what I'm doing wrong. Can you help me fix this code? Thank you very much.